- Reverts the bad half of commit
a712252392eca75443ca45c10a72873cabec7963:
treating files that wont be installed as skipped seems logical enough,
but rpm disagrees... making %ghosts FA_SKIP on install causes
upgrades on %ghost %config files to miss the necessary FA_SKIP getting
set on the erase half via handleInstInstalledFile() and
rpmfiDecideFate(), causing %ghost %config files to be nuked. Which isn't
very nice when your /var/lib/rpm/ contents are packaged as
%ghost %config...
- This fixes the %ghost %config testcase but breaks the shared %ghost
case in turn.
(cherry picked from commit
471b74bf6e218abb06bb3131a259cdfaec3f08cf)
ix = rpmfiDX(fi);
drc[ix]++;
- /*
- * Always skip %ghosts on install.
- * XXX: Should we skip directory creation if there are only
- * %ghosts in it? Traditionally we create the (empty) directory, so
- * preserving that behavior for now at least: leave the refcount alone.
- */
- if (rpmfiFFlags(fi) & RPMFILE_GHOST) {
- rpmfsSetAction(fs, i, FA_SKIP);
- continue;
- }
-
/* Don't bother with skipped files */
if (XFA_SKIPPING(rpmfsGetAction(fs, i))) {
drc[ix]--; dff[ix] = 1;