summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/uninstall.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/uninstall.c b/lib/uninstall.c
index ce12eb93e..87c8230d5 100644
--- a/lib/uninstall.c
+++ b/lib/uninstall.c
@@ -218,9 +218,15 @@ int removeBinaryPackage(const char * prefix, rpmdb db, unsigned int offset,
}
}
- rpmMessage(RPMMESS_DEBUG, _("removing database entry\n"));
- if (!(flags & RPMTRANS_FLAG_TEST))
+ if (!(flags & RPMTRANS_FLAG_TEST)) {
+ rpmMessage(RPMMESS_DEBUG, _("removing database entry\n"));
+ /*
+ * XXX rpmdbRemove used to have 2nd arg, tolerant = 0. This generates
+ * XXX an error message because of a db-1.85 hash access bug that
+ * XXX cannot be easily fixed. So, we turn off the error message.
+ */
rpmdbRemove(db, offset, 0);
+ }
rc = 0;