mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-16 03:41:11 +01:00
fix upgrade packages
This commit is contained in:
parent
65ab6f9177
commit
074badcfd6
1 changed files with 5 additions and 3 deletions
|
@ -59,12 +59,14 @@ def pkg_upgrade(repo, skip):
|
||||||
repo_pkg = split_package(name[:-4])
|
repo_pkg = split_package(name[:-4])
|
||||||
if (((repo_pkg[0] == inst_pkg[0] and
|
if (((repo_pkg[0] == inst_pkg[0] and
|
||||||
repo_pkg[1] > inst_pkg[1] 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[0] == inst_pkg[0] and
|
||||||
repo_pkg[1] == inst_pkg[1] and
|
repo_pkg[1] > inst_pkg[1] and
|
||||||
repo_pkg[3] > inst_pkg[3])) and
|
repo_pkg[3] == inst_pkg[3])) and
|
||||||
inst_pkg[0] not in BlackList().packages() and
|
inst_pkg[0] not in BlackList().packages() and
|
||||||
inst_pkg[0] not in skip):
|
inst_pkg[0] not in skip):
|
||||||
|
print repo_pkg[1], inst_pkg[1]
|
||||||
|
|
||||||
pkgs_for_upgrade.append('{0}-{1}'.format(repo_pkg[0],
|
pkgs_for_upgrade.append('{0}-{1}'.format(repo_pkg[0],
|
||||||
repo_pkg[1]))
|
repo_pkg[1]))
|
||||||
Msg().done()
|
Msg().done()
|
||||||
|
|
Loading…
Reference in a new issue