"pisi-cli lu" ignores --ignore-build-no
Fixed by Güngör Erseymen. BUG:FIXED:6826
This commit is contained in:
+3
-2
@@ -131,8 +131,9 @@ def list_upgradable():
|
|||||||
Return a list of packages that are upgraded in the repository -> list_of_strings
|
Return a list of packages that are upgraded in the repository -> list_of_strings
|
||||||
"""
|
"""
|
||||||
installdb = pisi.db.installdb.InstallDB()
|
installdb = pisi.db.installdb.InstallDB()
|
||||||
|
is_upgradable = lambda pkg: pisi.operations.upgrade.is_upgradable(pkg, ctx.get_option('ignore_build_no'))
|
||||||
upgradable = filter(pisi.operations.upgrade.is_upgradable, installdb.list_installed())
|
|
||||||
|
upgradable = filter(is_upgradable, installdb.list_installed())
|
||||||
# replaced packages can not pass is_upgradable test, so we add them manually
|
# replaced packages can not pass is_upgradable test, so we add them manually
|
||||||
upgradable.extend(list_replaces())
|
upgradable.extend(list_replaces())
|
||||||
return upgradable
|
return upgradable
|
||||||
|
|||||||
Reference in New Issue
Block a user