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:
parent
d6add031f1
commit
227654f30c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue