Fix the erased files last fix.
authorjbj <devnull@localhost>
Sun, 15 Aug 1999 13:41:06 +0000 (13:41 +0000)
committerjbj <devnull@localhost>
Sun, 15 Aug 1999 13:41:06 +0000 (13:41 +0000)
CVS patchset: 3226
CVS date: 1999/08/15 13:41:06

lib/transaction.c
po/rpm.pot

index 482000a..fcd138c 100644 (file)
@@ -704,7 +704,7 @@ static void handleOverlappedFiles(struct fileInfo * fi, hashTable ht,
 
        otherFileNum = -1;                      /* keep gcc quiet */
        for (otherPkgNum = j - 1; otherPkgNum >= 0; otherPkgNum--) {
-#if XXX_REMOVED_PACKAGES_LAST
+#if XXX_ERASED_PACKAGES_LAST
            if (recs[otherPkgNum]->type != TR_ADDED)
                continue;
 #endif
@@ -751,10 +751,14 @@ static void handleOverlappedFiles(struct fileInfo * fi, hashTable ht,
            break;
        case TR_REMOVED:
            if (otherPkgNum >= 0) {
-#if XXX_REMOVED_PACKAGES_LAST
+#if XXX_ERASED_PACKAGES_LAST
                fi->actions[i] = FA_SKIP;
                break;
 #else
+               if (recs[otherPkgNum]->actions[otherFileNum] != FA_REMOVE) {
+                   fi->actions[i] = FA_SKIP;
+                   break;
+               }
                recs[otherPkgNum]->actions[otherFileNum] = FA_SKIP;
 #endif
            }
index 80a38b4..d72ee3e 100644 (file)
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 1999-08-14 15:43-0400\n"
+"POT-Creation-Date: 1999-08-15 09:36-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"