Browse Source

Exception handling while package install

bugfixes
harshadyeola 10 years ago
parent
commit
4499c088ac
  1. 7
      ee/core/aptget.py

7
ee/core/aptget.py

@ -71,7 +71,10 @@ class EEAptGet:
self.cache.open()
for package in packages:
pkg = self.cache[package]
try:
pkg = self.cache[package]
except KeyError as e:
continue
# Check Package Installed
if pkg.is_installed or pkg.marked_install:
# Check Package is Upgradeble
@ -83,7 +86,7 @@ class EEAptGet:
if not pkg.marked_install:
print("\'{package_name}-{package_ver}\'"
"already the newest version"
.format(package_name=pkg.name,
.format(package_name=pkg.shortname,
package_ver=pkg.installed))
else:
with self.cache.actiongroup():

Loading…
Cancel
Save