From: Stefan Schubert Date: Tue, 22 Apr 2008 13:51:56 +0000 (+0000) Subject: Creating update testcase in /mnt if the updated has been started from X-Git-Tag: 6.6.0~1004 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d94c155f79807824c54deb93947a4f06f8656f75;p=platform%2Fupstream%2Flibzypp.git Creating update testcase in /mnt if the updated has been started from instsys --- diff --git a/zypp/solver/detail/ResolverUpgrade.cc b/zypp/solver/detail/ResolverUpgrade.cc index db7dcb78a..b2b17bdde 100644 --- a/zypp/solver/detail/ResolverUpgrade.cc +++ b/zypp/solver/detail/ResolverUpgrade.cc @@ -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();