--- smart/backends/rpm/base.py.orig 2006-11-07 21:11:24.000000000 +0100 +++ smart/backends/rpm/base.py 2006-11-07 21:12:52.000000000 +0100 @@ -181,9 +181,22 @@ def __lt__(self, other): rc = cmp(self.name, other.name) if type(other) is RPMPackage: + selfver, selfarch = splitarch(self.version) + otherver, otherarch = splitarch(other.version) + if archscore(selfarch) == 0: + return True + if archscore(otherarch) == 0: + return False + if os.uname()[4] == 'x86_64': + if selfarch != 'x86_64' and otherarch != 'x86_64': + pass + else: + if selfarch != 'x86_64': + return True + if otherarch != 'x86_64': + return False + if rc == 0 and self.version != other.version: - selfver, selfarch = splitarch(self.version) - otherver, otherarch = splitarch(other.version) if selfver != otherver: rc = vercmp(self.version, other.version) if rc == 0: