Commit 55490e70 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Prevent unlikely but possible infinite self-update loop

parent 67add765
......@@ -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)
......
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