]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- still needed
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 17 Feb 2008 18:29:03 +0000 (18:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-epoch0.patch -> 1.7

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

diff --git a/rpm-epoch0.patch b/rpm-epoch0.patch
new file mode 100644 (file)
index 0000000..0620ac5
--- /dev/null
@@ -0,0 +1,24 @@
+--- rpm-5.0.2/build/parsePreamble.c    2007-12-31 18:21:47.000000000 +0200
++++ rpm-5.0.2-epoch0/build/parsePreamble.c     2008-02-17 20:17:38.000000000 +0200
+@@ -1082,6 +1082,21 @@
+       headerCopyTags(spec->packages->header, pkg->header,
+                       (uint32_t *)copyTagsDuringParse);
++    /* Add Epoch: 0 to package header if it was not set by spec */
++    he->tag = RPMTAG_NAME;
++    if (headerGet(spec->packages->header, he, 0) == 0) {
++      int num = 0;
++
++      he->tag = RPMTAG_EPOCH;
++      he->t = RPM_UINT32_TYPE;
++      he->p.ui32p = &num;
++      he->c = 1;
++      xx = headerPut(pkg->header, he, 0);
++
++      /* also declare %{epoch} to be same */
++      addMacro(spec->macros, "epoch", NULL, "0", RMIL_SPEC);
++    }
++
+     if (checkForRequired(pkg->header, NVR) != RPMRC_OK)
+       return RPMRC_FAIL;
This page took 0.040738 seconds and 4 git commands to generate.