From 2eef5bc64258bdacf0d5ef2e682f846e9ba6476d Mon Sep 17 00:00:00 2001 From: gau1991 Date: Thu, 22 Jan 2015 19:24:46 +0530 Subject: [PATCH] Fixed cache.close() debian dependecy --- ee/core/aptget.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ee/core/aptget.py b/ee/core/aptget.py index b1adc51b..a7213cae 100644 --- a/ee/core/aptget.py +++ b/ee/core/aptget.py @@ -16,7 +16,6 @@ class EEAptGet(): fprogress = apt.progress.text.AcquireProgress() iprogress = apt.progress.base.InstallProgress() cache.update() - cache.close() def upgrade(self, packages): """Similar to apt-get update""" @@ -121,8 +120,6 @@ class EEAptGet(): print("package installation failed. [{err}]" .format(err=str(e))) return(False) - cache.close() - cache.close() return(True) def remove(self, packages, auto=False, purge=False): @@ -222,9 +219,7 @@ class EEAptGet(): # app.log.error('Sorry, package installation failed ') print("Sorry, package installation failed [{err}]" .format(err=str(e))) - cache.close() return(False) - cache.close() return(True) def is_installed(self, package): @@ -241,13 +236,10 @@ class EEAptGet(): pkg = cache[package] # Check Package Installed if pkg.is_installed: - cache.close() return True else: - cache.close() return False except KeyError as e: Log.debug(self, "{0}".format(e)) except Exception as e: - cache.close() return False