summaryrefslogtreecommitdiff
path: root/lib/rpmps.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-03-18 13:15:30 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-03-18 13:20:44 +0200
commitfa4d3f9cc9412dee033a6f9925280ca8e078a92a (patch)
treed28d682c693931e5d97f3b4f62c8f59c4d3cb373 /lib/rpmps.c
parente4f77b40107fde36d6cbbbfd3b547c9e3b853789 (diff)
downloadrpm-fa4d3f9cc9412dee033a6f9925280ca8e078a92a.tar.gz
Add a new problem type for obsoletes
Diffstat (limited to 'lib/rpmps.c')
-rw-r--r--lib/rpmps.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rpmps.c b/lib/rpmps.c
index bcee73243..9796d71a0 100644
--- a/lib/rpmps.c
+++ b/lib/rpmps.c
@@ -367,6 +367,11 @@ char * rpmProblemString(const rpmProblem prob)
altNEVR+2,
(prob->num1 ? "" : _("(installed) ")), pkgNEVR);
break;
+ case RPMPROB_OBSOLETES:
+ rc = rasprintf(&buf, _("%s is obsoleted by %s%s"),
+ altNEVR+2,
+ (prob->num1 ? "" : _("(installed) ")), pkgNEVR);
+ break;
default:
rc = rasprintf(&buf,
_("unknown error %d encountered while manipulating package %s"),