summaryrefslogtreecommitdiff
path: root/rpmqv.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-07-24 16:21:23 +0000
committerjbj <devnull@localhost>2002-07-24 16:21:23 +0000
commitede1f445e09895daee8bce8a2ddc9200839ee5de (patch)
tree66738dfcfd86d2c355b5f2ead53fb556999c2e71 /rpmqv.c
parent6540da425629bf45020047214b81e156c62c7d7b (diff)
downloadlibrpm-tizen-ede1f445e09895daee8bce8a2ddc9200839ee5de.tar.gz
librpm-tizen-ede1f445e09895daee8bce8a2ddc9200839ee5de.tar.bz2
librpm-tizen-ede1f445e09895daee8bce8a2ddc9200839ee5de.zip
- verify signatures/digests retrieved through rpmdbNextIterator().
- imbue %ghost with missingok attribute with --verify (#68933). CVS patchset: 5568 CVS date: 2002/07/24 16:21:23
Diffstat (limited to 'rpmqv.c')
-rwxr-xr-xrpmqv.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/rpmqv.c b/rpmqv.c
index 6b9cfb35d..bfa078f44 100755
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -946,14 +946,16 @@ int main(int argc, const char ** argv)
switch (bigMode) {
#ifdef IAM_RPMDB
case MODE_INITDB:
- (void) rpmdbInit(rootdir, 0644);
+ (void) rpmtsInitDB(ts, 0644);
break;
case MODE_REBUILDDB:
- ec = rpmdbRebuild(rootdir);
- break;
+ { int vsflags = rpmExpandNumeric("%{_vsflags_rebuilddb}");
+ (void)rpmtsSetVerifySigFlags(ts, (vsflags & ~_RPMTS_VSF_VERIFY_LEGACY));
+ ec = rpmtsRebuildDB(ts);
+ } break;
case MODE_VERIFYDB:
- ec = rpmdbVerify(rootdir);
+ ec = rpmtsVerifyDB(ts);
break;
#endif /* IAM_RPMDB */