]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-v3-support.patch
- fix !dist_kernel with non-built tree
[packages/rpm.git] / rpm-v3-support.patch
1 --- a/lib/rpmds.c       10 Jun 2007 17:12:25 -0000      2.55.2.4
2 +++ b/lib/rpmds.c       6 Oct 2007 01:09:19 -0000
3 @@ -253,6 +255,7 @@
4      const char ** N;
5      rpmTagType Nt;
6      int_32 Count;
7 +int rpmv3 = headerIsEntry(h, RPMTAG_OLDFILENAMES);
8  
9  assert(scareMem == 0);         /* XXX always allocate memory */
10      if (tagN == RPMTAG_PROVIDENAME) {
11 @@ -280,12 +283,12 @@
12         tagEVR = RPMTAG_TRIGGERVERSION;
13         tagF = RPMTAG_TRIGGERFLAGS;
14      } else
15 -    if (tagN == RPMTAG_DIRNAMES) {
16 +    if (!rpmv3 && tagN == RPMTAG_DIRNAMES) {
17         Type = "Dirnames";
18         tagEVR = 0;
19         tagF = 0;
20      } else
21 -    if (tagN == RPMTAG_FILELINKTOS) {
22 +    if (!rpmv3 && tagN == RPMTAG_FILELINKTOS) {
23         Type = "Filelinktos";
24         tagEVR = RPMTAG_DIRNAMES;
25         tagF = RPMTAG_DIRINDEXES;
This page took 0.072044 seconds and 3 git commands to generate.