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
55490e70
Commit
55490e70
authored
Jul 31, 2021
by
Paul McCarthy
🚵
Browse files
RF: Prevent unlikely but possible infinite self-update loop
parent
67add765
Changes
1
Hide whitespace changes
Inline
Side-by-side
fslinstaller.py
View file @
55490e70
...
...
@@ -1439,7 +1439,11 @@ def self_update(manifest, workdir, checksum):
'checksum! Skipping update.'
,
WARNING
)
return
cmd
=
[
sys
.
executable
,
tmpf
]
+
sys
.
argv
[
1
:]
# Don't try and update again - if for some
# reason the online manifest reports a newer
# version than what is available, we would
# otherwise enter into an infinite loop.
cmd
=
[
sys
.
executable
,
tmpf
]
+
sys
.
argv
[
1
:]
+
[
'--no_self_update'
]
log
.
debug
(
'Running new installer: %s'
,
cmd
)
os
.
execv
(
sys
.
executable
,
cmd
)
...
...
Write
Preview
Markdown
is supported
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