Fix computation of update candidate (bnc#834858)
authorMichael Andres <ma@suse.de>
Mon, 12 May 2014 15:12:28 +0000 (17:12 +0200)
committerMichael Andres <ma@suse.de>
Mon, 12 May 2014 15:12:28 +0000 (17:12 +0200)
Update candidate must come from the highest priority repo among all
available update candiates, not to the highest priority repo at all.

zypp/ui/SelectableImpl.h

index 0f2dfb8..4bafbf0 100644 (file)
@@ -153,10 +153,6 @@ namespace zypp
         // Here: installed and defaultCand are non NULL and it's not a
         //       multiversion install.
 
-        // update candidate must come from the highest priority repo
-        if ( defaultCand->repoInfo().priority() != (*availableBegin())->repoInfo().priority() )
-          return PoolItem();
-
         PoolItem installed( installedObj() );
         // check vendor change
         if ( ! ( ResPool::instance().resolver().allowVendorChange()