]> git.ipfire.org Git - pakfire.git/commitdiff
Remove uuid comparison to check if packages are equal.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Mar 2011 16:26:03 +0000 (17:26 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Mar 2011 16:26:03 +0000 (17:26 +0100)
This did not take the link to a repository into account.

pakfire/packages/base.py

index 3d6bf4ed2edb423b285ca02b0bbda8656468f5ce..df81f1c18267e85c4a4ea968f185c910e7cfc661 100644 (file)
@@ -26,10 +26,6 @@ class Package(object):
                if not self.name == other.name:
                        return cmp(self.name, other.name)
 
-               # Compare the uuids: if packages have the same id they are totally equal.
-               if self.uuid and other.uuid and self.uuid == other.uuid:
-                       return 0
-
                ret = util.version_compare(self.version_tuple, other.version_tuple)
 
                # XXX this is to move packages that have been built a while ago and