|
@ -26,13 +26,11 @@ class EEAptGet(): |
|
|
if proc.returncode == 0: |
|
|
if proc.returncode == 0: |
|
|
return True |
|
|
return True |
|
|
else: |
|
|
else: |
|
|
Log.debug(self, "Command Output: {0}, Command Error: {1}" |
|
|
Log.error(self, "Unable to run apt-get update") |
|
|
.format(cmd_stdout, cmd_stderr)) |
|
|
|
|
|
|
|
|
|
|
|
except Exception as e: |
|
|
except Exception as e: |
|
|
Log.error(self, "Error, while installing packages, " |
|
|
Log.error(self, "Error while installing packages, " |
|
|
"apt-get exited with status %s" |
|
|
"apt-get exited with error") |
|
|
% e) |
|
|
|
|
|
|
|
|
|
|
|
def dist_upgrade(): |
|
|
def dist_upgrade(): |
|
|
""" |
|
|
""" |
|
@ -67,13 +65,11 @@ class EEAptGet(): |
|
|
if proc.returncode == 0: |
|
|
if proc.returncode == 0: |
|
|
return True |
|
|
return True |
|
|
else: |
|
|
else: |
|
|
Log.debug(self, "Command Output: {0}, Command Error: {1}" |
|
|
Log.error(self, "Unable to run apt-get install") |
|
|
.format(cmd_stdout, cmd_stderr)) |
|
|
|
|
|
|
|
|
|
|
|
except Exception as e: |
|
|
except Exception as e: |
|
|
Log.error(self, "Error, while installing packages, " |
|
|
Log.error(self, "Error while installing packages, " |
|
|
"apt-get exited with status %s" |
|
|
"apt-get exited with error") |
|
|
% e) |
|
|
|
|
|
|
|
|
|
|
|
def remove(self, packages, auto=False, purge=False): |
|
|
def remove(self, packages, auto=False, purge=False): |
|
|
all_packages = ' '.join(packages) |
|
|
all_packages = ' '.join(packages) |
|
@ -93,13 +89,11 @@ class EEAptGet(): |
|
|
if proc.returncode == 0: |
|
|
if proc.returncode == 0: |
|
|
return True |
|
|
return True |
|
|
else: |
|
|
else: |
|
|
Log.debug(self, "Command Output: {0}, Command Error: {1}" |
|
|
Log.error(self, "Unable to run apt-get remove/purge") |
|
|
.format(cmd_stdout, cmd_stderr)) |
|
|
|
|
|
|
|
|
|
|
|
except Exception as e: |
|
|
except Exception as e: |
|
|
Log.error(self, "Error, while installing packages, " |
|
|
Log.error(self, "Error while installing packages, " |
|
|
"apt-get exited with status %s" |
|
|
"apt-get exited with error") |
|
|
% e) |
|
|
|
|
|
|
|
|
|
|
|
def auto_clean(self): |
|
|
def auto_clean(self): |
|
|
""" |
|
|
""" |
|
|