Browse Source

Merge branch 'python' of github.com:rtCamp/easyengine into python

bugfixes
Mitesh Shah 10 years ago
parent
commit
e2665dd72b
  1. 17
      ee/core/aptget.py

17
ee/core/aptget.py

@ -64,7 +64,16 @@ class EEAptGet():
except Exception as e: except Exception as e:
Log.debug(self, str(e)) Log.debug(self, str(e))
Log.error(self, str(e)) Log.error(self, str(e))
else:
#apt_cache.close()
Log.error(self, 'Unknown package selected (' +
package_name.strip() + ')')
for package in packages:
if not install_package(self, package):
continue
if apt_cache.install_count > 0:
try: try:
#apt_pkg.PkgSystemUnLock() #apt_pkg.PkgSystemUnLock()
result = apt_cache.commit() result = apt_cache.commit()
@ -77,14 +86,6 @@ class EEAptGet():
except Exception as e: except Exception as e:
Log.debug(self, str(e)) Log.debug(self, str(e))
Log.error(self, str(e)) Log.error(self, str(e))
else:
#apt_cache.close()
Log.error(self, 'Unknown package selected (' +
package_name.strip() + ')')
for package in packages:
if not install_package(self, package):
continue
def remove(self, packages, auto=False, purge=False): def remove(self, packages, auto=False, purge=False):
""" """

Loading…
Cancel
Save