From dbbb380304314401fe39b42ae1d71c012534b124 Mon Sep 17 00:00:00 2001 From: harshadyeola Date: Fri, 23 Jan 2015 17:47:21 +0530 Subject: [PATCH] Minor fix --- ee/core/aptget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ee/core/aptget.py b/ee/core/aptget.py index 7cfa0e17..2e533e19 100644 --- a/ee/core/aptget.py +++ b/ee/core/aptget.py @@ -36,10 +36,10 @@ class EEAptGet(): """Installation of packages""" apt_pkg.init() # #apt_pkg.PkgSystemLock() + global apt_cache apt_cache = apt.cache.Cache() def install_package(self, package_name): - global apt_cache pkg = apt_cache[package_name.strip()] if package_name.strip() in apt_cache: if pkg.is_installed: @@ -71,10 +71,10 @@ class EEAptGet(): def remove(self, packages, auto=False, purge=False): apt_pkg.init() # apt_pkg.PkgSystemLock() + global apt_cache apt_cache = apt.cache.Cache() def remove_package(self, package_name, purge=False): - global apt_cache pkg = apt_cache[package_name.strip()] if package_name.strip() in apt_cache: if not pkg.is_installed: