summaryrefslogtreecommitdiff
path: root/lib/verify.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-28 23:06:29 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-28 23:06:29 +0300
commitadbd484372cb38aca5aca3c6dba3b2ca9cae93d1 (patch)
tree2a6dc2c0abd87920d7bba76b85cbc90e5bec78b7 /lib/verify.c
parentac1e1ff57256022b2e4ab091aa5743b92f0a6131 (diff)
downloadrpm-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.c1
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: