Creating update testcase in /mnt if the updated has been started from
authorStefan Schubert <schubi@suse.de>
Tue, 22 Apr 2008 13:51:56 +0000 (13:51 +0000)
committerStefan Schubert <schubi@suse.de>
Tue, 22 Apr 2008 13:51:56 +0000 (13:51 +0000)
instsys

zypp/solver/detail/ResolverUpgrade.cc

index db7dcb7..b2b17bd 100644 (file)
@@ -233,8 +233,15 @@ Resolver::doUpgrade( UpgradeStatistics & opt_stats_r )
     << endl;
 
   // create a testcase for the updating system
-  Testcase testcase("/var/log/updateTestcase");
-  testcase.createTestcase (*this, true, false); // create pool, do not solve
+  PathInfo path ("/mnt/var/log"); // checking if update has been started from instsys
+
+  if ( !path.isExist() ) {
+      Testcase testcase("/var/log/updateTestcase");
+      testcase.createTestcase (*this, true, false); // create pool, do not solve 
+  } else {
+      Testcase testcase("/mnt/var/log/updateTestcase");
+      testcase.createTestcase (*this, true, false); // create pool, do not solve
+  }
 
   _unmaintained_items.clear();
   _problem_items.clear();