Don't bother calculating digests of %ghost %config files
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 8 Oct 2012 06:27:18 +0000 (09:27 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 8 Oct 2012 06:38:57 +0000 (09:38 +0300)
commit389b1ab706be8eddba9f00c7084759f670ce96ac
tree87e0825574f111733400a1cee1127dfef7f7ec60
parente17bf0449dc54d007b66954170b9d12dad1e74a2
Don't bother calculating digests of %ghost %config files

- Calculating digest of %ghost config is useless as there's nothing
  to compare the result to. Also we never take backups of %ghost
  configuration anyway, so this is a total waste of time. One common
  case of %ghost %config is the rpmdb (environment and all) which
  can be rather large and calculating digests can take several seconds,
  only for the results to be thrown away unused.
- There are some cases where it might be reasonable to back up %ghost
  %config (eg if it gets replaced by non-config), but
  rpmfiConfigConflictIndex() doesn't have sufficient context to figure
  that out. For now, preserve the traditional simple rule: no backups
  for ghosts, ever.
lib/rpmfi.c