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:
Stefano Rivera 2010-07-12 21:12:42 +02:00
parent 5c5240519b
commit 7ad49b91be

View File

@ -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: