Commit 6b189500 authored by segfault's avatar segfault
Browse files

Fix tails-upgrade-frontend-wrapper.py

The wrapper tried calling tails-upgrade-frontend forever, which is not
what the bash script did.
parent 9a448a1b
......@@ -48,18 +48,13 @@ def main(*args):
sh.xhost('+SI:localuser:{}'.format(RUN_AS_USER))
# try forever
done = False
while not done:
try:
if len(args) > 0:
result = sh.sudo('-u', RUN_AS_USER, '/usr/bin/tails-upgrade-frontend', sh.glob(args))
else:
result = sh.sudo('-u', RUN_AS_USER, '/usr/bin/tails-upgrade-frontend')
except sh.ErrorReturnCode:
pass
try:
if len(args) > 0:
result = sh.sudo('-u', RUN_AS_USER, '/usr/bin/tails-upgrade-frontend', sh.glob(args))
else:
done = True
result = sh.sudo('-u', RUN_AS_USER, '/usr/bin/tails-upgrade-frontend')
except sh.ErrorReturnCode:
pass
sh.xhost('-SI:localuser:{}'.format(RUN_AS_USER))
sys.exit(result.exit_code)
......
Markdown is supported
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