]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- version 3 rpm files support
authorkosmo <kosmo@pld-linux.org>
Mon, 28 Jan 2008 19:43:02 +0000 (19:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- fixes rpm: rpmds.c:226: rpmdsDupArgv: Assertion `argv[ac] != ((void *)0)' failed.

Changed files:
    rpm-v3-support.patch -> 1.1

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

diff --git a/rpm-v3-support.patch b/rpm-v3-support.patch
new file mode 100644 (file)
index 0000000..33486db
--- /dev/null
@@ -0,0 +1,25 @@
+--- a/lib/rpmds.c      10 Jun 2007 17:12:25 -0000      2.55.2.4
++++ b/lib/rpmds.c      6 Oct 2007 01:09:19 -0000
+@@ -253,6 +255,7 @@
+     const char ** N;
+     rpmTagType Nt;
+     int_32 Count;
++int rpmv3 = headerIsEntry(h, RPMTAG_OLDFILENAMES);
+ assert(scareMem == 0);                /* XXX always allocate memory */
+     if (tagN == RPMTAG_PROVIDENAME) {
+@@ -280,12 +283,12 @@
+       tagEVR = RPMTAG_TRIGGERVERSION;
+       tagF = RPMTAG_TRIGGERFLAGS;
+     } else
+-    if (tagN == RPMTAG_DIRNAMES) {
++    if (!rpmv3 && tagN == RPMTAG_DIRNAMES) {
+       Type = "Dirnames";
+       tagEVR = 0;
+       tagF = 0;
+     } else
+-    if (tagN == RPMTAG_FILELINKTOS) {
++    if (!rpmv3 && tagN == RPMTAG_FILELINKTOS) {
+       Type = "Filelinktos";
+       tagEVR = RPMTAG_DIRNAMES;
+       tagF = RPMTAG_DIRINDEXES;
This page took 0.042072 seconds and 4 git commands to generate.