From b857e5d15d54350ab775cf1b028c05f929f90aa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volkan=20=C5=9Eahin?= Date: Mon, 9 May 2016 14:12:33 +0300 Subject: [PATCH] download file via http way was changed --- opt/ahenk/base/execution/ExecutionManager.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/opt/ahenk/base/execution/ExecutionManager.py b/opt/ahenk/base/execution/ExecutionManager.py index ec2ffdf..5ab6fba 100644 --- a/opt/ahenk/base/execution/ExecutionManager.py +++ b/opt/ahenk/base/execution/ExecutionManager.py @@ -9,6 +9,7 @@ import shutil import stat import subprocess import uuid +import urllib.request from base.Scope import Scope @@ -67,9 +68,7 @@ class ExecutionManager(object): elif plugin['protocol'].lower() == 'http': self.logger.debug('[ExecutionManager] Distribution protocol is {}.'.format(str(plugin['protocol']).lower())) - #TODO - #wget.download(parameter_map['url'], temp_file) - pass + urllib.request.urlretrieve(parameter_map['url'], temp_file) self.logger.debug('[ExecutionManager] Plugin package downloaded via {}.'.format(str(plugin['protocol']).lower())) self.install_deb(temp_file)