Fix broken string substitution from a765aa32

The changes in a765aa32 removed a more complex pieced of code for parsing which sudo command to use. The %(eb)s no longer refers to any variable and is directly printed to the command line.

%(eb)s is now replaced with ‘sudo’.
This commit is contained in:
Joseph Barker 2019-10-27 12:12:57 +09:00 committed by Brian May
parent 2d92090625
commit c69b9d6f4b

View File

@ -197,7 +197,7 @@ class FirewallClient:
if platform.platform().startswith('OpenBSD'):
elev_prefix = ['doas']
else:
elev_prefix = ['sudo', '-p', '[local %(eb)s] Password: ']
elev_prefix = ['sudo', '-p', '[local sudo] Password: ']
if sudo_pythonpath:
elev_prefix += ['/usr/bin/env',
'PYTHONPATH=%s' % python_path]