diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-09-28 23:06:29 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-09-28 23:06:29 +0300 |
commit | adbd484372cb38aca5aca3c6dba3b2ca9cae93d1 (patch) | |
tree | 2a6dc2c0abd87920d7bba76b85cbc90e5bec78b7 /lib/verify.c | |
parent | ac1e1ff57256022b2e4ab091aa5743b92f0a6131 (diff) | |
download | rpm-adbd484372cb38aca5aca3c6dba3b2ca9cae93d1.tar.gz |
Make RPMFILE_STATE_MISSING part of the rpmfileState enum
- Shuts up couple of "not in enum" complaints from gcc, and actually
"no state" is a perfectly valid state for one case: non-installed
packages (so remove the "not valid" comment from formats.c)
- OTOH, this created a new complaint for not handled case in a switch.
Oh well, fix it up too...
Diffstat (limited to 'lib/verify.c')
-rw-r--r-- | lib/verify.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/verify.c b/lib/verify.c index 96fae01bf..1c3769d13 100644 --- a/lib/verify.c +++ b/lib/verify.c @@ -72,6 +72,7 @@ int rpmVerifyFile(const rpmts ts, const rpmfi fi, case RPMFILE_STATE_REPLACED: case RPMFILE_STATE_NOTINSTALLED: case RPMFILE_STATE_WRONGCOLOR: + case RPMFILE_STATE_MISSING: return 0; break; case RPMFILE_STATE_NORMAL: |