From c52e3f2cb06c33584a04807fce6429383d922ad6 Mon Sep 17 00:00:00 2001 From: Klaus Kaempf Date: Thu, 30 Mar 2006 09:47:34 +0000 Subject: [PATCH] add "--test" flag (#159467) --- zypp/target/rpm/RpmDb.cc | 2 ++ zypp/target/rpm/RpmDb.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/zypp/target/rpm/RpmDb.cc b/zypp/target/rpm/RpmDb.cc index c9741fc..c8e268f 100644 --- a/zypp/target/rpm/RpmDb.cc +++ b/zypp/target/rpm/RpmDb.cc @@ -1830,6 +1830,8 @@ void RpmDb::doInstallPackage( const Pathname & filename, unsigned flags, callbac opts.push_back ("--ignoresize"); if(flags & RPMINST_JUSTDB) opts.push_back ("--justdb"); + if(flags & RPMINST_TEST) + opts.push_back ("--test"); opts.push_back("--"); opts.push_back (filename.asString().c_str()); diff --git a/zypp/target/rpm/RpmDb.h b/zypp/target/rpm/RpmDb.h index bf74e68..a14b23a 100644 --- a/zypp/target/rpm/RpmDb.h +++ b/zypp/target/rpm/RpmDb.h @@ -420,7 +420,8 @@ namespace zypp { RPMINST_JUSTDB = 0x0020, RPMINST_NODIGEST = 0x0040, RPMINST_NOSIGNATURE= 0x0080, - RPMINST_NOUPGRADE = 0x0100 + RPMINST_NOUPGRADE = 0x0100, + RPMINST_TEST = 0x0200 }; /** -- 2.7.4