diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-04-21 10:59:31 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-04-21 10:59:31 +0300 |
commit | b80340761ff064469fa099a541e2f2128ca482c6 (patch) | |
tree | d778567daa50b163fa2e4542c9fe295003ee86a0 | |
parent | d2406a7e1754e7a7dc8136d9132929df36e5f230 (diff) | |
download | rpm-b80340761ff064469fa099a541e2f2128ca482c6.tar.gz rpm-b80340761ff064469fa099a541e2f2128ca482c6.tar.bz2 rpm-b80340761ff064469fa099a541e2f2128ca482c6.zip |
Retrofit RPMTAG_SOURCEPACKAGE to source rpms.
-rw-r--r-- | lib/package.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/package.c b/lib/package.c index 32608899d..810b266f5 100644 --- a/lib/package.c +++ b/lib/package.c @@ -937,8 +937,9 @@ exit: /* * Convert legacy headers on the fly. Not having "new" style compressed * filenames is close enough estimate for legacy indication... + * Source rpms are retrofitted for the silly RPMTAG_SOURCEPACKAGE tag. */ - if (!headerIsEntry(h, RPMTAG_DIRNAMES)) { + if (!headerIsEntry(h, RPMTAG_DIRNAMES) || headerIsSource(h)) { legacyRetrofit(h); } |