fix sudo syntax from 7a1fa6e857

fdroid/fdroidserver!713
This commit is contained in:
Hans-Christoph Steiner 2020-02-11 19:44:06 +01:00
parent 5a6422f4f3
commit 697a0641f1
No known key found for this signature in database
GPG key ID: 3E177817BA1B9BFA

View file

@ -371,7 +371,7 @@ def build_local(app, build, vcs, build_dir, output_dir, log_dir, srclib_dir, ext
if build.sudo: if build.sudo:
logging.info("Running 'sudo' commands in %s" % os.getcwd()) logging.info("Running 'sudo' commands in %s" % os.getcwd())
p = FDroidPopen(['sudo', '--preserve-env=DEBIAN_FRONTEND', p = FDroidPopen(['sudo', 'DEBIAN_FRONTEND=noninteractive',
'bash', '-x', '-c', build.sudo]) 'bash', '-x', '-c', build.sudo])
if p.returncode != 0: if p.returncode != 0:
raise BuildException("Error running sudo command for %s:%s" % raise BuildException("Error running sudo command for %s:%s" %