mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-19 12:51:29 +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:
|
else:
|
||||||
if not os.path.isdir("buildresult"):
|
if not os.path.isdir("buildresult"):
|
||||||
os.makedirs("buildresult")
|
os.makedirs("buildresult")
|
||||||
cmd = ["sudo", "env", "DIST=" + dist, pbuilder, "--build",
|
cmd = ["sudo", "-E", "DIST=" + dist, pbuilder, "--build",
|
||||||
"--buildresult", "buildresult", dsc_file]
|
"--buildresult", "buildresult", dsc_file]
|
||||||
subprocess.check_call(LogCall(cmd))
|
subprocess.check_call(LogCall(cmd))
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user