Refactor wo_download

This commit is contained in:
VirtuBox
2019-10-23 14:08:54 +02:00
parent e84399540b
commit cadad5b733
2 changed files with 9 additions and 18 deletions

View File

@@ -50,6 +50,8 @@ class WOUpdateController(CementBaseController):
if pargs.preserve:
install_args = install_args + "--preserve "
if not os.path.isdir('/var/lib/wo/tmp'):
os.makedirs('/var/lib/wo/tmp')
WODownload.download(self, [["https://raw.githubusercontent.com/"
"WordOps/WordOps/{0}/install"
.format(wo_branch),