@ -58,6 +58,11 @@ class EEStackController(CementBaseController):
dict(help='Install Utils stack', action='store_true')),
]
@expose(hide=True)
def package_check(self, packages=[]):
# Function for packages check
pass
def default(self):
# TODO Default action for ee stack command
@ -215,3 +215,16 @@ class EEAptGet:
.format(err=str(e)))
return(False)
return(True)
def is_installed(self, package):
# Cache Initialization
if not self.cache:
self.cache = apt.Cache()
# Cache Read
self.cache.open()
pkg = self.cache[package]
# Check Package Installed
if pkg.is_installed:
return True
else:
return False