From d94c155f79807824c54deb93947a4f06f8656f75 Mon Sep 17 00:00:00 2001 From: Stefan Schubert Date: Tue, 22 Apr 2008 13:51:56 +0000 Subject: [PATCH] Creating update testcase in /mnt if the updated has been started from instsys --- zypp/solver/detail/ResolverUpgrade.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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(); -- 2.34.1