install feature used

This commit is contained in:
Volkan Şahin 2016-08-05 20:08:29 +03:00
parent 8550ba2d9e
commit fdd7e240ee

View file

@ -94,7 +94,7 @@ class ExecutionManager(object):
return
try:
self.install_deb(downloaded_file)
Util.install_with_gdebi(downloaded_file)
self.logger.debug('[ExecutionManager] Plugin installed.')
except Exception as e:
self.logger.error('[ExecutionManager] Could not install plugin. Error Message: {}'.format(str(e)))
@ -439,14 +439,6 @@ class ExecutionManager(object):
agent_execution_id=json_data['agentCommandExecutionId'],
user_execution_id=json_data['userCommandExecutionId'])
def install_deb(self, full_path):
try:
process = subprocess.Popen('gdebi -n ' + full_path, shell=True)
process.wait()
except Exception as e:
self.logger.error(
'[ExecutionManager] Deb package couldn\'t install properly. Error Message: {}'.format(str(e)))
def remove_file(self, full_path):
try:
subprocess.Popen('rm ' + full_path, shell=True)