diff options
author | marc <devnull@localhost> | 1996-07-15 00:54:18 +0000 |
---|---|---|
committer | marc <devnull@localhost> | 1996-07-15 00:54:18 +0000 |
commit | 7ae3268ff72e936ec87f9b7679335e017984c973 (patch) | |
tree | afd633cec073f22edc2e2e8e9a63c6406056e31b /build | |
parent | c26b4691b02f92ba5d53f54c25c55d9339216f2b (diff) | |
download | rpm-7ae3268ff72e936ec87f9b7679335e017984c973.tar.gz rpm-7ae3268ff72e936ec87f9b7679335e017984c973.tar.bz2 rpm-7ae3268ff72e936ec87f9b7679335e017984c973.zip |
take packager from rpmrc
CVS patchset: 830
CVS date: 1996/07/15 00:54:18
Diffstat (limited to 'build')
-rw-r--r-- | build/pack.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build/pack.c b/build/pack.c index c252db090..0e441f16c 100644 --- a/build/pack.c +++ b/build/pack.c @@ -369,6 +369,7 @@ int packageBinaries(Spec s, char *passPhrase) char *release; char *vendor; char *dist; + char *packager; char *packageVersion, *packageRelease; char *prefix; int prefixLen; @@ -399,6 +400,10 @@ int packageBinaries(Spec s, char *passPhrase) if (!isEntry(s->packages->header, RPMTAG_DISTRIBUTION)) { dist = getVar(RPMVAR_DISTRIBUTION); } + packager = NULL; + if (!isEntry(s->packages->header, RPMTAG_PACKAGER)) { + packager = getVar(RPMVAR_PACKAGER); + } /* Look through for each package */ pr = s->packages; @@ -483,6 +488,9 @@ int packageBinaries(Spec s, char *passPhrase) if (dist) { addEntry(outHeader, RPMTAG_DISTRIBUTION, STRING_TYPE, dist, 1); } + if (packager) { + addEntry(outHeader, RPMTAG_PACKAGER, STRING_TYPE, packager, 1); + } /**** Process the file list ****/ |