From 383ecdb50bf3c906b83040f436b81570798a98f3 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 18 Nov 2014 13:08:26 -0800 Subject: [PATCH] Correct variable name --- packaging/os/apt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/os/apt.py b/packaging/os/apt.py index 5c557900b76..b175b6ae317 100644 --- a/packaging/os/apt.py +++ b/packaging/os/apt.py @@ -220,7 +220,7 @@ def package_status(m, pkgname, version, cache, state): # Only claim the package is upgradable if a candidate matches the version package_is_upgradable = False for candidate in avail_upgrades: - if pkg.versions[candidate] > p.installed: + if pkg.versions[candidate] > pkg.installed: package_is_upgradable = True break else: