Initialize `upgradable` before use.
reviewable/pr18780/r1
Pomin Wu 9 years ago committed by Brian Coca
parent 82aeaed45d
commit f78509d0cf

@ -263,6 +263,7 @@ def package_status(m, pkgname, version, cache, state):
provided_packages = cache.get_providing_packages(pkgname) provided_packages = cache.get_providing_packages(pkgname)
if provided_packages: if provided_packages:
is_installed = False is_installed = False
upgradable = False
# when virtual package providing only one package, look up status of target package # when virtual package providing only one package, look up status of target package
if cache.is_virtual_package(pkgname) and len(provided_packages) == 1: if cache.is_virtual_package(pkgname) and len(provided_packages) == 1:
package = provided_packages[0] package = provided_packages[0]

Loading…
Cancel
Save