Be more selective about legacy retrofits on package read
authorPanu Matilainen <pmatilai@redhat.com>
Sat, 15 Sep 2012 09:14:43 +0000 (12:14 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Sat, 15 Sep 2012 09:17:31 +0000 (12:17 +0300)
commit57f9d42a0eb380d93dfe8efeb52f366e754ad0c9
tree4c5cab0c91644dd8465471e49c1d66c03e739647
parent62fd585b2ecd85519d67cc7185077d1178aed040
Be more selective about legacy retrofits on package read

- Missing RPMTAG_DIRNAME can mean either a package with uncompressed
  filenames OR a new package with no files, in which case the retrofits
  should not be performed. Also a newer package can be built with
  --nodirtokens, requiring filelist compression but no other retrofits.
- Test for immutable region presence for more accurate v3 package
  detection, if not present do a full retrofit. For others, explicitly
  test for OLDFILENAMES presence and only compress the filelist if needed.e
lib/package.c