mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-04-17 21:31:09 +00:00
ack-sync: Allow environment to leak into sudo when calling pbuilder.
e.g. So one can set an environment variable specifying the architecture to build on, or to tell a lintian pbuilder hook script not to abort the build in the presence of serious issues.
This commit is contained in:
parent
5c5240519b
commit
7ad49b91be
2
ack-sync
2
ack-sync
@ -86,7 +86,7 @@ def build_source(dist, dsc_file):
|
||||
else:
|
||||
if not os.path.isdir("buildresult"):
|
||||
os.makedirs("buildresult")
|
||||
cmd = ["sudo", "env", "DIST=" + dist, pbuilder, "--build",
|
||||
cmd = ["sudo", "-E", "DIST=" + dist, pbuilder, "--build",
|
||||
"--buildresult", "buildresult", dsc_file]
|
||||
subprocess.check_call(LogCall(cmd))
|
||||
except subprocess.CalledProcessError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user