uninstall.c: rpmdbRemove used to have 2nd arg, tolerant = 0. This generates
authorjbj <devnull@localhost>
Wed, 15 Dec 1999 17:10:31 +0000 (17:10 +0000)
committerjbj <devnull@localhost>
Wed, 15 Dec 1999 17:10:31 +0000 (17:10 +0000)
an error message because of a db-1.85 hash access bug that cannot be
easily fixed. So, we turn off the error message.

CVS patchset: 3484
CVS date: 1999/12/15 17:10:31

lib/uninstall.c

index ce12eb9..87c8230 100644 (file)
@@ -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;