From: Michael Tremer Date: Fri, 18 Mar 2011 16:26:03 +0000 (+0100) Subject: Remove uuid comparison to check if packages are equal. X-Git-Tag: 0.9.3~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77635708786ffffecd1a1abe6afdd07286056b40;p=pakfire.git Remove uuid comparison to check if packages are equal. This did not take the link to a repository into account. --- diff --git a/pakfire/packages/base.py b/pakfire/packages/base.py index 3d6bf4ed2..df81f1c18 100644 --- a/pakfire/packages/base.py +++ b/pakfire/packages/base.py @@ -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