Axe the if-what jungle in rpmfiDecideFateIndex()
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 23 Aug 2012 11:31:33 +0000 (14:31 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 23 Aug 2012 11:37:52 +0000 (14:37 +0300)
commit0936fbc7bb51f4643e05dfe9a98ac30c82d215e2
tree8dc45ca051fb3045854c40772f07c00516cdb094
parentd0b76044cf04b049d4df0838b93d005ede066949
Axe the if-what jungle in rpmfiDecideFateIndex()

- Unless the file does not exist on disk, we cannot determine the
  correct action for config files and symlinks before we actually
  check them. Those are also the only types that *can* result in
  FA_ALTNAME/FA_SAVE action, anything else we can just create.
  Besides making the logic a whole lot easier to follow, it also
  fixes our remaining test-case failures. Who would've thought?
- Might be worth noting that this requires the pile of fsm fixes
  from previous commits to work.
lib/rpmfi.c
tests/rpmconfig3.at