mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
build: keep DEBIAN_FRONTEND env var when running sudo: script
closes #636
This commit is contained in:
parent
ae86dc3d38
commit
7a1fa6e857
1 changed files with 2 additions and 1 deletions
|
@ -371,7 +371,8 @@ 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', 'bash', '-x', '-c', build.sudo])
|
||||
p = FDroidPopen(['sudo', '--preserve-env=DEBIAN_FRONTEND',
|
||||
'bash', '-x', '-c', build.sudo])
|
||||
if p.returncode != 0:
|
||||
raise BuildException("Error running sudo command for %s:%s" %
|
||||
(app.id, build.versionName), p.output)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue