From: Klaus Kaempf Date: Thu, 30 Mar 2006 09:47:34 +0000 (+0000) Subject: add "--test" flag (#159467) X-Git-Tag: BASE-SuSE-SLE-10-SP2-Branch~1300 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c52e3f2cb06c33584a04807fce6429383d922ad6;p=platform%2Fupstream%2Flibzypp.git add "--test" flag (#159467) --- 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 }; /**