From 13b6b4b9a8bc0efe22bbd5290320b60c64e8e666 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Sun, 21 Nov 2010 15:01:46 +0100 Subject: [PATCH] ack-sync: State on which architecture the build was tested. --- ack-sync | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ack-sync b/ack-sync index dc035f0..607645e 100755 --- a/ack-sync +++ b/ack-sync @@ -157,7 +157,7 @@ def main(bug_numbers, all_package, all_version, all_section, update, if sbuild: subprocess.call(LogCall(["sbuild-update", dist])) else: - cmd = ["sudo", "env", "DIST=" + dist, pbuilder, "--update"] + cmd = ["sudo", "-E", "DIST=" + dist, pbuilder, "--update"] subprocess.call(LogCall(cmd)) for bug_number in bug_numbers: @@ -279,7 +279,10 @@ def main(bug_numbers, all_package, all_version, all_section, update, task.assignee = None print "unassigned me" task.lp_save() - content = "%s %s builds. Sync request ACK'd." % (package, version) + cmd = ["dpkg-architecture", "-qDEB_BUILD_ARCH"] + process = subprocess.Popen(cmd, stdout=subprocess.PIPE) + architecture = process.communicate()[0].strip() + content = "%s %s builds on %s. Sync request ACK'd." % (package, version, architecture) bug.newMessage(content=content, subject="ack-sync") bug.subscribe(person=launchpad.people['ubuntu-archive']) print "subscribed ubuntu-archive"