From 074badcfd6b30d6274e8e1693f6cda7705958e61 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 3 Jun 2015 16:12:11 +0300 Subject: [PATCH] fix upgrade packages --- slpkg/binary/check.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/slpkg/binary/check.py b/slpkg/binary/check.py index 67558abc..f058844d 100644 --- a/slpkg/binary/check.py +++ b/slpkg/binary/check.py @@ -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()