Kaydet (Commit) 0712a86e authored tarafından Eray Özkural's avatar Eray Özkural

* minor improvement in code

üst 64861701
......@@ -114,14 +114,12 @@ def list_available():
return available
def list_upgradable():
ignore_build = ctx.config.options and ctx.config.options.ignore_build_no
ignore_build = ctx.get_option('ignore_build_no')
A = ctx.installdb.list_installed()
# filter packages that are not upgradable
Ap = []
for x in A:
if not ctx.installdb.is_installed(x):
continue
(version, release, build) = ctx.installdb.get_version(x)
pkg = packagedb.get_package(x)
if ignore_build or (not build):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment