1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-03 17:50:11 +02:00

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:
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])
if p.returncode != 0:
raise BuildException("Error running sudo command for %s:%s" %