return code from rpmRemovePackage() was being ignored
authorewt <devnull@localhost>
Thu, 20 Mar 1997 15:18:45 +0000 (15:18 +0000)
committerewt <devnull@localhost>
Thu, 20 Mar 1997 15:18:45 +0000 (15:18 +0000)
CVS patchset: 1491
CVS date: 1997/03/20 15:18:45

install.c

index 4503805..3bf2501 100644 (file)
--- a/install.c
+++ b/install.c
@@ -365,7 +365,9 @@ int doUninstall(char * rootdir, char ** argv, int uninstallFlags,
        for (i = 0; i < numPackages; i++) {
            rpmMessage(RPMMESS_DEBUG, "uninstalling record number %d\n",
                        packageOffsets[i]);
-           rpmRemovePackage(rootdir, db, packageOffsets[i], uninstallFlags);
+           if (rpmRemovePackage(rootdir, db, packageOffsets[i], 
+                                uninstallFlags))
+               numFailed++;
        }
     }