Use fsm->action to decide whether we need a backup or not.
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 23 Aug 2012 10:11:06 +0000 (13:11 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 23 Aug 2012 10:20:57 +0000 (13:20 +0300)
commit3b44f1dc8b97e30ce611af2eeb598290ef9efeed
treeb9e4e49f6bd1f7f7329b8298b9c97abc60fd946d
parentd85b62428c9e8d9dc9f6db0e3fa4d3eb1fcfa09f
Use fsm->action to decide whether we need a backup or not.

- We already have a carefully precalculated action decided for these
  things, use that instead of bunch of arbitrary (except for osuffix)
  conditions depending on several nasty hacks and hidden assumptions.
  Doing so fixes stuff, who would've thought of that?
- Adjust test-suite expectations
lib/fsm.c
tests/rpmconfig2.at