Browse Source

Improved donwload actions..

bugfixes
gau1991 10 years ago
parent
commit
47db325974
  1. 9
      ee/cli/plugins/stack.py
  2. 2
      ee/core/download.py

9
ee/cli/plugins/stack.py

@ -65,7 +65,14 @@ class EEStackController(CementBaseController):
"debconf-set-selections".format(chars=chars))
@expose(hide=True)
def post_pref(self, packages):
def post_pref(self, apt_packages, packages):
if len(apt_packages):
if "postfix" in apt_packages:
pass
pass
if len(packages):
if any('/usr/bin/wp' == x[1] for x in packages):
EEShellExec.cmd_exec("chmod +x /usr/bin/wp")
pass
@expose()

2
ee/core/download.py

@ -17,7 +17,9 @@ class EEDownload():
directory = os.path.dirname(filename)
if not os.path.exists(directory):
os.makedirs(directory)
print("Downloading "+os.path.basename(url))
urllib.request.urlretrieve(url, filename)
print("Done")
return True
except urllib.error.URLError as e:
print("Unable to donwload file, [{err}]"

Loading…
Cancel
Save