Use rpmfiConfigConflictIndex() for modified config testing on erase too
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 22 Aug 2012 08:56:12 +0000 (11:56 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 22 Aug 2012 08:56:12 +0000 (11:56 +0300)
commita3a08a4b0aa96ae03c33050920baf894cc706c9e
tree0b05839e18951a6450b8f95fffa24a93890feacf
parent79f8122f41116659e944feb6675725d09663a0dd
Use rpmfiConfigConflictIndex() for modified config testing on erase too

- Besides eliminating another copy-paste variant of the config file
  digest calculation and comparison, this fixes the case modified
  %config symlink gets silently erased. Unlike a regular config file,
  a symlink does not contain a whole lot of carefully tuned data, but
  if it's marked %config I think we should honor the %config file rules.
- Adjust test-suite expectations to match the new behavior.
lib/transaction.c
tests/rpmconfig2.at