Perform Resolver::doUpgrade even if target is not initialized.
authorMichael Andres <ma@suse.de>
Thu, 10 Sep 2009 14:27:52 +0000 (16:27 +0200)
committerMichael Andres <ma@suse.de>
Thu, 10 Sep 2009 14:27:52 +0000 (16:27 +0200)
It's sufficient if a targets solv file is present in the pool,
as if used with testcases.

zypp/solver/detail/ResolverUpgrade.cc

index ae079b8..d914654 100644 (file)
@@ -67,8 +67,7 @@ Resolver::doUpgrade()
   Target_Ptr target( getZYpp()->getTarget() );
   if ( ! target )
   {
-    ERR << "Huh, no target ?" << endl;
-    return false; // can't continue without target
+    WAR << "Huh, no target ?" << endl;
   }
 
   // Setting Resolver to upgrade mode. SAT solver will do the update