mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-10 13:32:17 +03:00
download file via http way was changed
This commit is contained in:
parent
e124b3039f
commit
b857e5d15d
1 changed files with 2 additions and 3 deletions
|
@ -9,6 +9,7 @@ import shutil
|
||||||
import stat
|
import stat
|
||||||
import subprocess
|
import subprocess
|
||||||
import uuid
|
import uuid
|
||||||
|
import urllib.request
|
||||||
|
|
||||||
|
|
||||||
from base.Scope import Scope
|
from base.Scope import Scope
|
||||||
|
@ -67,9 +68,7 @@ class ExecutionManager(object):
|
||||||
|
|
||||||
elif plugin['protocol'].lower() == 'http':
|
elif plugin['protocol'].lower() == 'http':
|
||||||
self.logger.debug('[ExecutionManager] Distribution protocol is {}.'.format(str(plugin['protocol']).lower()))
|
self.logger.debug('[ExecutionManager] Distribution protocol is {}.'.format(str(plugin['protocol']).lower()))
|
||||||
#TODO
|
urllib.request.urlretrieve(parameter_map['url'], temp_file)
|
||||||
#wget.download(parameter_map['url'], temp_file)
|
|
||||||
pass
|
|
||||||
|
|
||||||
self.logger.debug('[ExecutionManager] Plugin package downloaded via {}.'.format(str(plugin['protocol']).lower()))
|
self.logger.debug('[ExecutionManager] Plugin package downloaded via {}.'.format(str(plugin['protocol']).lower()))
|
||||||
self.install_deb(temp_file)
|
self.install_deb(temp_file)
|
||||||
|
|
Loading…
Reference in a new issue