From ce5dec0c12cc8108175d42a3e1cebe188e32e1c3 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Sun, 14 Feb 2010 15:55:52 +0100 Subject: [PATCH] Setting the package name or version does not work, if multiple bugs are processed. --- ack-sync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ack-sync b/ack-sync index eff4769..d48d5be 100755 --- a/ack-sync +++ b/ack-sync @@ -124,13 +124,13 @@ def main(bug_numbers, package, version, section, update, verbose=False, silent=F task = list(bug.bug_tasks)[0] - if package is None: + if package is None or len(bug_numbers) > 1: package = task.bug_target_name.split(" ")[0] if package == "ubuntu": # no source package was defined. Guessing that the second word in # the title is the package name package = bug.title.split(" ")[1] - if version is None: + if version is None or len(bug_numbers) > 1: version = get_version(bug.title) print "package:", package print "version:", version