add "--test" flag (#159467)
authorKlaus Kaempf <kkaempf@suse.de>
Thu, 30 Mar 2006 09:47:34 +0000 (09:47 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Thu, 30 Mar 2006 09:47:34 +0000 (09:47 +0000)
zypp/target/rpm/RpmDb.cc
zypp/target/rpm/RpmDb.h

index c9741fc..c8e268f 100644 (file)
@@ -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());
index bf74e68..a14b23a 100644 (file)
@@ -420,7 +420,8 @@ namespace zypp {
              RPMINST_JUSTDB     = 0x0020,
              RPMINST_NODIGEST   = 0x0040,
              RPMINST_NOSIGNATURE= 0x0080,
-             RPMINST_NOUPGRADE  = 0x0100
+             RPMINST_NOUPGRADE  = 0x0100,
+             RPMINST_TEST       = 0x0200
            };
       
          /**