Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
conda
installer
Commits
3717dfe1
Commit
3717dfe1
authored
Jul 13, 2021
by
Paul McCarthy
🚵
Browse files
RF: save installer update to workdir if set
parent
2933d5f0
Changes
1
Show whitespace changes
Inline
Side-by-side
fslinstaller.py
View file @
3717dfe1
...
...
@@ -691,7 +691,6 @@ def download_file(url, destination, progress=None, blocksize=1048576):
progress
(
downloaded
,
total
)
except
Exception
:
raise
raise
DownloadFailed
(
'A network error has occurred while '
'trying to download {}'
.
format
(
url
))
finally
:
...
...
@@ -1156,7 +1155,8 @@ def self_update(ctx):
log
.
debug
(
'New version of installer is available '
'(%s) - self-updating'
,
latestver
)
tmpf
=
tempfile
.
NamedTemporaryFile
(
delete
=
False
)
tmpf
=
tempfile
.
NamedTemporaryFile
(
prefix
=
'new_fslinstaller'
,
delete
=
False
,
dir
=
ctx
.
args
.
workdir
)
tmpf
.
close
()
tmpf
=
tmpf
.
name
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment