diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-12-01 19:29:57 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-12-01 19:29:57 +0200 |
commit | 5219448fa1c27988e40450063db5fd49139faace (patch) | |
tree | 31375273d160239ae7be7132c92d89568b09f331 /lib/legacy.c | |
parent | 935df9b81e698d60181f7ca97730e22ac6b8b34e (diff) | |
download | rpm-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.c | 2 |
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, |