Packages not having RPMTAG_DIRNAMES (ie compressed filenames) is
used for checking, packages not having it are either built with rpm <= 3.x
or with --nodirtokens, retrofitting in the latter case doesn't really
hurt that much for the obscure case...
exit:
if (rc != RPMRC_FAIL && h != NULL && hdrp != NULL) {
- /* Convert legacy headers on the fly ... */
- legacyRetrofit(h, l);
+ /*
+ * Convert legacy headers on the fly. Not having "new" style compressed
+ * filenames is close enough estimate for legacy indication...
+ */
+ if (!headerIsEntry(h, RPMTAG_DIRNAMES)) {
+ legacyRetrofit(h, l);
+ }
/* Append (and remap) signature tags to the metadata. */
headerMergeLegacySigs(h, sigh);