Verify files from non-installed packages again (RhBug:826589)

- Verifying files against the originating, non-installed package can
  be useful sometimes, eg if rpmdb is broken or cannot be trusted.
  Of course such verification will give false positives on files that
  were intentionally skipped during installation (nodocs, wrong color,
  netshared...), that can't be helped.
- This restores the former behavior that was erroneously changed
  in commit adbd484372 while "fixing"
  an unhandled enumeration in the switch. Doh.
This commit is contained in:
Panu Matilainen 2012-08-07 12:28:56 +03:00
parent d6add031f1
commit 227654f30c
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,6 @@ int rpmVerifyFile(const rpmts ts, const rpmfi fi,
switch (rpmfiFState(fi)) {
case RPMFILE_STATE_NETSHARED:
case RPMFILE_STATE_NOTINSTALLED:
case RPMFILE_STATE_MISSING:
return 0;
break;
case RPMFILE_STATE_REPLACED:
@ -87,6 +86,8 @@ int rpmVerifyFile(const rpmts ts, const rpmfi fi,
RPMVERIFY_MTIME | RPMVERIFY_RDEV);
break;
case RPMFILE_STATE_NORMAL:
/* File from a non-installed package, try to verify nevertheless */
case RPMFILE_STATE_MISSING:
break;
}