fixed lp/patch inconsistency in determining needed patches (bnc #464458)
authorJán Kupec <jkupec@suse.cz>
Thu, 8 Jan 2009 15:07:36 +0000 (16:07 +0100)
committerJán Kupec <jkupec@suse.cz>
Thu, 8 Jan 2009 15:07:36 +0000 (16:07 +0100)
src/update.cc

index 3e42ba2..3093f46 100755 (executable)
@@ -614,7 +614,7 @@ mark_patch_updates( Zypper & zypper, bool skip_interactive )
       for_(it, God->pool().proxy().byKindBegin(ResKind::patch),
                God->pool().proxy().byKindEnd  (ResKind::patch))
       {
-        if (mark_patch_update((*it)->candidateObj(), skip_interactive, ignore_affects_pm))
+        if (mark_patch_update(findTheBest(God->pool(),**it), skip_interactive, ignore_affects_pm))
           any_marked = true;
       }
     }
@@ -646,7 +646,7 @@ mark_patch_updates( Zypper & zypper, bool skip_interactive )
         {
           for_(pit, q.selectableBegin(), q.selectableEnd())
           {
-            any_marked = mark_patch_update((*pit)->candidateObj(), skip_interactive, ignore_affects_pm);
+            any_marked = mark_patch_update(findTheBest(God->pool(),**pit), skip_interactive, ignore_affects_pm);
           }
         }
       }