aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-03-24 05:51:55 -0400
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-10-14 10:51:24 +0200
commit5488e8c8ba4b6a9064bb4d70937ea2ed713d8b06 (patch)
tree9e0b81f0d4094cd4e8b5dc3c2d10252b8ac1f3ea
parente134398e5535ddf0e4fbda067eeffd7581a9b339 (diff)
downloadperl-URPM-5488e8c8ba4b6a9064bb4d70937ea2ed713d8b06.tar
perl-URPM-5488e8c8ba4b6a9064bb4d70937ea2ed713d8b06.tar.gz
perl-URPM-5488e8c8ba4b6a9064bb4d70937ea2ed713d8b06.tar.bz2
perl-URPM-5488e8c8ba4b6a9064bb4d70937ea2ed713d8b06.tar.xz
perl-URPM-5488e8c8ba4b6a9064bb4d70937ea2ed713d8b06.zip
reports obsoletes issues too
RPMPROB_OBSOLETE was added in rpm-4.9.0 (5 years ago) but wasn't handled until now
-rw-r--r--URPM.xs3
1 files changed, 3 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 8c05507..5541e1a 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -705,6 +705,9 @@ return_problems(rpmps ps, int translate_message, int raw_message) {
case RPMPROB_CONFLICT:
sv = newSVpvf("conflicts@%s@%s", pkgNEVR, altNEVR+2); break;
+ case RPMPROB_OBSOLETES:
+ sv = newSVpvf("obsoletes@%s@%s", pkgNEVR, altNEVR+2); break;
+
default:
sv = newSVpvf("unknown@%s", pkgNEVR); break;
}