From e28490df04968667ae0e3f55a70f6e8e7b67b204 Mon Sep 17 00:00:00 2001 From: ewt Date: Sat, 31 Aug 1996 18:37:25 +0000 Subject: [PATCH] add RPMTAG_RPMVERSION to headers CVS patchset: 1011 CVS date: 1996/08/31 18:37:25 --- build/pack.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/pack.c b/build/pack.c index 0b943fb..238c7f6 100644 --- a/build/pack.c +++ b/build/pack.c @@ -475,6 +475,7 @@ int packageBinaries(Spec s, char *passPhrase, int doPackage) addEntry(outHeader, RPMTAG_BUILDTIME, INT32_TYPE, getBuildTime(), 1); addEntry(outHeader, RPMTAG_BUILDHOST, STRING_TYPE, buildHost(), 1); addEntry(outHeader, RPMTAG_SOURCERPM, STRING_TYPE, sourcerpm, 1); + addEntry(outHeader, RPMTAG_RPMVERSION, STRING_TYPE, VERSION, 1); if (pr->icon) { sprintf(filename, "%s/%s", getVar(RPMVAR_SOURCEDIR), pr->icon); stat(filename, &statbuf); @@ -700,6 +701,7 @@ int packageSource(Spec s, char *passPhrase) addEntry(outHeader, RPMTAG_ARCH, STRING_TYPE, getArchName(), 1); addEntry(outHeader, RPMTAG_BUILDTIME, INT32_TYPE, getBuildTime(), 1); addEntry(outHeader, RPMTAG_BUILDHOST, STRING_TYPE, buildHost(), 1); + addEntry(outHeader, RPMTAG_RPMVERSION, STRING_TYPE, VERSION, 1); if (scount) addEntry(outHeader, RPMTAG_SOURCE, STRING_ARRAY_TYPE, sources, scount); if (pcount) -- 2.7.4