diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-03-02 17:40:21 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-03-02 17:40:21 +0000 |
commit | 03db6e24776d9d1b8125401492958031fcd59f33 (patch) | |
tree | bf7e76d700ce56e09e01b535352f5bfdcf357f1a /URPM.xs | |
parent | a2247c42c49221f0a43c26df33c140f71c6a26c6 (diff) | |
download | perl-URPM-03db6e24776d9d1b8125401492958031fcd59f33.tar perl-URPM-03db6e24776d9d1b8125401492958031fcd59f33.tar.gz perl-URPM-03db6e24776d9d1b8125401492958031fcd59f33.tar.bz2 perl-URPM-03db6e24776d9d1b8125401492958031fcd59f33.tar.xz perl-URPM-03db6e24776d9d1b8125401492958031fcd59f33.zip |
Honor verification flags in verif_rpm() even when reading from a file without
having open the rpmdb
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3390,8 +3390,6 @@ Urpm_verify_rpm(filename, ...) } else { if (db) { ts = db->ts; - /* setting verify flags, keeping trace of current flags */ - oldvsflags = rpmtsSetVSFlags(ts, vsflags); } else { /* compabilty mode to use rpmdb installed on / */ ts = rpmtsCreate(); @@ -3399,6 +3397,8 @@ Urpm_verify_rpm(filename, ...) rpmtsSetRootDir(ts, "/"); rpmtsOpenDB(ts, O_RDONLY); } + /* setting verify flags, keeping trace of current flags */ + oldvsflags = rpmtsSetVSFlags(ts, vsflags); rc = rpmReadPackageFile(ts, fd, filename, &ret); fdClose(fd); |