[zypp-commit] r9785 - /trunk/libzypp/zypp/solver/detail/ResolverUpgrade.cc
Author: schubi2 Date: Tue Apr 22 15:51:56 2008 New Revision: 9785 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9785&view=rev Log: Creating update testcase in /mnt if the updated has been started from instsys Modified: trunk/libzypp/zypp/solver/detail/ResolverUpgrade.cc Modified: trunk/libzypp/zypp/solver/detail/ResolverUpgrade.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/solver/detail/ResolverUpgrade.cc?rev=9785&r1=9784&r2=9785&view=diff ============================================================================== --- trunk/libzypp/zypp/solver/detail/ResolverUpgrade.cc (original) +++ trunk/libzypp/zypp/solver/detail/ResolverUpgrade.cc Tue Apr 22 15:51:56 2008 @@ -233,8 +233,15 @@ << 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(); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
schubi2@svn.opensuse.org