On Thu, 8 Oct 2009, Ville Skyttä wrote:

On Wednesday 07 October 2009, Seth Vidal wrote:
This adds 'YumBase.doesThisUpdate(pkg1, pkg2)' which lets this check take
 less time.
[...]
+    def doesthisUpdate(self, pkg1, pkg2):
+        """returns True if pkg1 can update pkg2, False if not"""
+
+        if pkg1.name != pkg2.name:
+            return False

Hmm, this doesn't seem to take Obsoletes into account.  If that's on purpose,
I don't think mentioning it in the docstring would hurt.

it is on purpose. An update is not an obsolete - they are checked for separately.

-sv
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to