]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-epoch0.patch
- bugfix: don't override Epoch inherited from the main package
[packages/rpm.git] / rpm-epoch0.patch
1 --- rpm-4.3.orig/build/parsePreamble.c  2003-11-16 13:47:23.000000000 +0100
2 +++ rpm-4.3/build/parsePreamble.c       2004-02-29 15:40:58.466804704 +0100
3 @@ -942,6 +943,11 @@
4         headerCopyTags(spec->packages->header, pkg->header,
5                         (int_32 *)copyTagsDuringParse);
6  
7 +    if (headerGetEntry(pkg->header, RPMTAG_EPOCH, NULL, NULL, NULL) == 0) {
8 +       int num = 0;
9 +       headerAddEntry(pkg->header, RPMTAG_EPOCH, RPM_INT32_TYPE, &num, 1);
10 +    }
11 +    
12      if (checkForRequired(pkg->header, NVR))
13         return RPMERR_BADSPEC;
14  
This page took 0.037944 seconds and 4 git commands to generate.