Use the element color instead of header color
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 19 Mar 2010 07:04:12 +0000 (09:04 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 19 Mar 2010 07:04:12 +0000 (09:04 +0200)
- this is just the same thing, element color has been already calculated
  so no need to go through header extensions again

lib/depends.c

index d74e6db..f8965de 100644 (file)
@@ -270,7 +270,7 @@ addheader:
     }
 
     /* On upgrade, erase older packages of same color (if any). */
-    hcolor = headerGetNumber(h, RPMTAG_HEADERCOLOR);
+    hcolor = rpmteColor(p);
     mi = rpmtsInitIterator(ts, RPMTAG_NAME, rpmteN(p), 0);
     while((oh = rpmdbNextIterator(mi)) != NULL) {