Commit 3717dfe1 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: save installer update to workdir if set

parent 2933d5f0
...@@ -691,7 +691,6 @@ def download_file(url, destination, progress=None, blocksize=1048576): ...@@ -691,7 +691,6 @@ def download_file(url, destination, progress=None, blocksize=1048576):
progress(downloaded, total) progress(downloaded, total)
except Exception: except Exception:
raise
raise DownloadFailed('A network error has occurred while ' raise DownloadFailed('A network error has occurred while '
'trying to download {}'.format(url)) 'trying to download {}'.format(url))
finally: finally:
...@@ -1156,7 +1155,8 @@ def self_update(ctx): ...@@ -1156,7 +1155,8 @@ def self_update(ctx):
log.debug('New version of installer is available ' log.debug('New version of installer is available '
'(%s) - self-updating', latestver) '(%s) - self-updating', latestver)
tmpf = tempfile.NamedTemporaryFile(delete=False) tmpf = tempfile.NamedTemporaryFile(
prefix='new_fslinstaller', delete=False, dir=ctx.args.workdir)
tmpf.close() tmpf.close()
tmpf = tmpf.name tmpf = tmpf.name
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment