From 7ad49b91be41423031884a936f4bb4fa24bd1953 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Mon, 12 Jul 2010 21:12:42 +0200 Subject: [PATCH] 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. --- ack-sync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ack-sync b/ack-sync index 6bf1fb6..e94d8fe 100755 --- a/ack-sync +++ b/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: