+++ rpm-4.3/build/parsePreamble.c 2004-02-29 15:40:58.466804704 +0100
@@ -942,6 +943,12 @@
headerCopyTags(spec->packages->header, pkg->header,
- (int_32 *)copyTagsDuringParse);
+ (uint32_t *)copyTagsDuringParse);
+ if (headerGetEntry(pkg->header, RPMTAG_EPOCH, NULL, NULL, NULL) == 0) {
+ int num = 0;
+ addMacro(spec->macros, "epoch", NULL, "0", RMIL_SPEC);
+ }
+
- if (checkForRequired(pkg->header, NVR))
- return RPMERR_BADSPEC;
+ if (checkForRequired(pkg->header, NVR) != RPMRC_OK)
+ return RPMRC_FAIL;