From fdd7e240eeb5cf6ef0f6fe7fd8e9aa86d6f014a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volkan=20=C5=9Eahin?= Date: Fri, 5 Aug 2016 20:08:29 +0300 Subject: [PATCH] install feature used --- opt/ahenk/base/execution/ExecutionManager.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/opt/ahenk/base/execution/ExecutionManager.py b/opt/ahenk/base/execution/ExecutionManager.py index 9c2dd45..79436ad 100644 --- a/opt/ahenk/base/execution/ExecutionManager.py +++ b/opt/ahenk/base/execution/ExecutionManager.py @@ -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)