summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-02 14:43:00 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-02 14:43:00 +0300
commita912ca599ce959dd15dc33378b1686dfc7c3aca8 (patch)
tree618142af593f6e9943501ef9bba986f04072b10b /build
parent8c04f809e5763475ae3f778fe2a195a4417013dc (diff)
downloadrpm-a912ca599ce959dd15dc33378b1686dfc7c3aca8.tar.gz
rpm-a912ca599ce959dd15dc33378b1686dfc7c3aca8.tar.bz2
rpm-a912ca599ce959dd15dc33378b1686dfc7c3aca8.zip
Fix dumb thinko from commit 4177fdffd6e7414123062e8716afb22596608531
Diffstat (limited to 'build')
-rw-r--r--build/spec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/spec.c b/build/spec.c
index 5ae5f01f4..64abd37bb 100644
--- a/build/spec.c
+++ b/build/spec.c
@@ -83,7 +83,7 @@ rpmRC lookupPackage(rpmSpec spec, const char *name, int flag,Package *pkg)
/* Locate package with fullName */
for (p = spec->packages; p != NULL; p = p->next) {
- pname = headerGetString(spec->packages->header, RPMTAG_NAME);
+ pname = headerGetString(p->header, RPMTAG_NAME);
if (pname && (rstreq(fullName, pname))) {
break;
}