aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-02 17:40:21 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-02 17:40:21 +0000
commit03db6e24776d9d1b8125401492958031fcd59f33 (patch)
treebf7e76d700ce56e09e01b535352f5bfdcf357f1a /URPM.xs
parenta2247c42c49221f0a43c26df33c140f71c6a26c6 (diff)
downloadperl-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.xs4
1 files changed, 2 insertions, 2 deletions
diff --git a/URPM.xs b/URPM.xs
index c13afa5..fc8deb4 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -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);