take packager from rpmrc

CVS patchset: 830
CVS date: 1996/07/15 00:54:18
This commit is contained in:
marc 1996-07-15 00:54:18 +00:00
parent c26b4691b0
commit 7ae3268ff7
1 changed files with 8 additions and 0 deletions

View File

@ -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 ****/