ack-sync: State on which architecture the build was tested.

This commit is contained in:
Benjamin Drung 2010-11-21 15:01:46 +01:00
parent d55ea2647f
commit 13b6b4b9a8

View File

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