]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- new from rpm cvs
authortommat <tommat@pld-linux.org>
Mon, 18 Jun 2007 21:36:53 +0000 (21:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-rpmdb.patch -> 1.1

rpm-rpmdb.patch [new file with mode: 0644]

diff --git a/rpm-rpmdb.patch b/rpm-rpmdb.patch
new file mode 100644 (file)
index 0000000..12a8d16
--- /dev/null
@@ -0,0 +1,21 @@
+--- rpm-4.4.9/rpmdb/rpmdb.c.orig       2007-06-18 20:32:27.000000000 +0200
++++ rpm-4.4.9/rpmdb/rpmdb.c    2007-06-18 20:34:07.000000000 +0200
+@@ -3088,7 +3088,6 @@
+     HAE_t hae = (HAE_t) headerAddEntry;
+     HFD_t hfd = headerFreeData;
+     sigset_t signalMask;
+-    uint32_t hcolor = 0;
+     const char ** baseNames;
+     rpmTagType bnt;
+     const char ** dirNames;
+@@ -3122,8 +3121,8 @@
+     }
+     /* Add the package color if not present. */
+-    if (!hge(h, RPMTAG_PACKAGECOLOR, &bnt, (void **) &hcolor, &count)) {
+-      hcolor = hGetColor(h);
++    if (!headerIsEntry(h, RPMTAG_PACKAGECOLOR)) {
++      uint32_t hcolor = hGetColor(h);
+       xx = hae(h, RPMTAG_PACKAGECOLOR, RPM_INT32_TYPE, &hcolor, 1);
+     }
This page took 0.031569 seconds and 4 git commands to generate.