Browse Source

minor changes

bugfixes
harshadyeola 10 years ago
parent
commit
a5abc3dbaa
  1. 1
      ee/cli/plugins/stack.py
  2. 14
      ee/core/aptget.py

1
ee/cli/plugins/stack.py

@ -314,7 +314,6 @@ class EEStackController(CementBaseController):
self.pre_pref(apt_packages)
if len(apt_packages):
pkg.update()
pkg.install(apt_packages)
if len(packages):
EEDownload.download(packages)

14
ee/core/aptget.py

@ -14,13 +14,14 @@ class EEAptGet:
def update(self):
"""Similar to apt-get update"""
self.cache.update(self.fprogress)
pass
self.cache.open()
def upgrade(self, packages):
"""Similar to apt-get update"""
my_selected_packages = []
# Cache Initialization
self.cache = apt.Cache()
if not self.cache:
self.cache = apt.Cache()
# Cache Read
self.cache.open()
for package in packages:
@ -64,9 +65,11 @@ class EEAptGet:
"""Installation of packages"""
my_selected_packages = []
# Cache Initialization
self.cache = apt.Cache()
if not self.cache:
self.cache = apt.Cache()
# Cache Read
self.cache.open()
for package in packages:
pkg = self.cache[package]
# Check Package Installed
@ -132,6 +135,11 @@ class EEAptGet:
def remove(self, packages, auto=True, purge=False):
my_selected_packages = []
# Cache Initialization
if not self.cache:
self.cache = apt.Cache()
# Cache Read
self.cache.open()
for package in packages:
print("processing", package)
package = self.cache[package]

Loading…
Cancel
Save