summaryrefslogtreecommitdiff
path: root/lib/legacy.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-01 19:29:57 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-01 19:29:57 +0200
commit5219448fa1c27988e40450063db5fd49139faace (patch)
tree31375273d160239ae7be7132c92d89568b09f331 /lib/legacy.c
parent935df9b81e698d60181f7ca97730e22ac6b8b34e (diff)
downloadrpm-5219448fa1c27988e40450063db5fd49139faace.tar.gz
rpm-5219448fa1c27988e40450063db5fd49139faace.tar.bz2
rpm-5219448fa1c27988e40450063db5fd49139faace.zip
Use headerIsSource() everywhere for determining package type
Diffstat (limited to 'lib/legacy.c')
-rw-r--r--lib/legacy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/legacy.c b/lib/legacy.c
index 267b136e4..2372f14a6 100644
--- a/lib/legacy.c
+++ b/lib/legacy.c
@@ -258,7 +258,7 @@ void legacyRetrofit(Header h)
compressFilelist(h);
/* XXX binary rpms always have RPMTAG_SOURCERPM, source rpms do not */
- if (!headerIsEntry(h, RPMTAG_SOURCERPM)) {
+ if (headerIsSource(h)) {
int32_t one = 1;
if (!headerIsEntry(h, RPMTAG_SOURCEPACKAGE))
(void) headerAddEntry(h, RPMTAG_SOURCEPACKAGE, RPM_INT32_TYPE,