Rip hardcoded libgcc + glibc static helper kludges
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 15 Jun 2009 12:21:27 +0000 (15:21 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 15 Jun 2009 12:21:27 +0000 (15:21 +0300)
- shouldn't be needed anyway anymore as package of preferred color should get
  always installed first, and the issue is solvable in packaging anyway

lib/transaction.c

index 25a147a..f1a5290 100644 (file)
@@ -263,12 +263,8 @@ assert(otherFi != NULL);
                if (tscolor != 0) {
                    if (FColor & prefcolor) {
                        /* ... last file of preferred colour is installed ... */
-                       if (!XFA_SKIPPING(rpmfsGetAction(fs, i))) {
-                           /* XXX static helpers are order dependent. Ick. */
-                           if (strcmp(fn, "/usr/sbin/libgcc_post_upgrade")
-                            && strcmp(fn, "/usr/sbin/glibc_post_upgrade"))
-                               rpmfsSetAction(otherFs, otherFileNum, FA_SKIPCOLOR);
-                       }
+                       if (!XFA_SKIPPING(rpmfsGetAction(fs, i)))
+                           rpmfsSetAction(otherFs, otherFileNum, FA_SKIPCOLOR);
                        rpmfsSetAction(fs, i, FA_CREATE);
                        rConflicts = 0;
                    } else