]> TLD Linux GIT Repositories - packages/rpm.git/blob - rpm-epoch0.patch
- backported rubyprov package from PLD rpm 5.x
[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,12 @@
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 +       addMacro(spec->macros, "epoch", NULL, "0", RMIL_SPEC);
11 +    }
12 +    
13      if (checkForRequired(pkg->header, NVR))
14         return RPMERR_BADSPEC;
15