fix upgrade packages

This commit is contained in:
Dimitris Zlatanidis 2015-06-03 16:12:11 +03:00
parent 65ab6f9177
commit 074badcfd6

View file

@ -59,12 +59,14 @@ def pkg_upgrade(repo, skip):
repo_pkg = split_package(name[:-4])
if (((repo_pkg[0] == inst_pkg[0] and
repo_pkg[1] > inst_pkg[1] and
repo_pkg[3] == inst_pkg[3]) or
repo_pkg[3] > inst_pkg[3]) or
(repo_pkg[0] == inst_pkg[0] and
repo_pkg[1] == inst_pkg[1] and
repo_pkg[3] > inst_pkg[3])) and
repo_pkg[1] > inst_pkg[1] and
repo_pkg[3] == inst_pkg[3])) and
inst_pkg[0] not in BlackList().packages() and
inst_pkg[0] not in skip):
print repo_pkg[1], inst_pkg[1]
pkgs_for_upgrade.append('{0}-{1}'.format(repo_pkg[0],
repo_pkg[1]))
Msg().done()