diff options
-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); } |