summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-04-21 10:59:31 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-04-21 10:59:31 +0300
commitb80340761ff064469fa099a541e2f2128ca482c6 (patch)
treed778567daa50b163fa2e4542c9fe295003ee86a0 /lib
parentd2406a7e1754e7a7dc8136d9132929df36e5f230 (diff)
downloadrpm-b80340761ff064469fa099a541e2f2128ca482c6.tar.gz
rpm-b80340761ff064469fa099a541e2f2128ca482c6.tar.bz2
rpm-b80340761ff064469fa099a541e2f2128ca482c6.zip
Retrofit RPMTAG_SOURCEPACKAGE to source rpms.
Diffstat (limited to 'lib')
-rw-r--r--lib/package.c3
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);
}