summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-10 17:16:12 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-10 17:16:12 +0300
commit154462928eb6c391e2505ce7bc7354b1eb215f3c (patch)
treecc65a30f4dda9b62453b9b20a0c7ac203d0563e4 /build
parentcdb2cd545b7ba35fb641f165f2d1269d40fad690 (diff)
downloadrpm-154462928eb6c391e2505ce7bc7354b1eb215f3c.tar.gz
rpm-154462928eb6c391e2505ce7bc7354b1eb215f3c.tar.bz2
rpm-154462928eb6c391e2505ce7bc7354b1eb215f3c.zip
Oops, accessing the wrong header in processBinaryFiles()
- dumb mistakes from commit 4177fdffd6e7414123062e8716afb22596608531
Diffstat (limited to 'build')
-rw-r--r--build/files.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/files.c b/build/files.c
index c83f2ad69..b5c5437a4 100644
--- a/build/files.c
+++ b/build/files.c
@@ -2244,7 +2244,7 @@ int processBinaryFiles(rpmSpec spec, int installSpecialDoc, int test)
if (pkg->fileList == NULL)
continue;
- nvr = headerGetAsString(spec->packages->header, RPMTAG_NVRA);
+ nvr = headerGetAsString(pkg->header, RPMTAG_NVRA);
rpmlog(RPMLOG_NOTICE, _("Processing files: %s\n"), nvr);
free(nvr);
@@ -2252,7 +2252,7 @@ int processBinaryFiles(rpmSpec spec, int installSpecialDoc, int test)
(rc = rpmfcGenerateDepends(spec, pkg)) != RPMRC_OK)
goto exit;
- a = headerGetString(spec->packages->header, RPMTAG_ARCH);
+ a = headerGetString(pkg->header, RPMTAG_ARCH);
if (rstreq(a, "noarch") && headerGetNumber(pkg->header, RPMTAG_HEADERCOLOR) != 0) {
int terminate = rpmExpandNumeric("%{?_binaries_in_noarch_packages_terminate_build}");
rpmlog(terminate ? RPMLOG_ERR : RPMLOG_WARNING,