mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-09 16:01:28 +00:00
Setting the package name or version does not work, if multiple bugs are processed.
This commit is contained in:
parent
47030d4fd7
commit
ce5dec0c12
4
ack-sync
4
ack-sync
@ -124,13 +124,13 @@ def main(bug_numbers, package, version, section, update, verbose=False, silent=F
|
|||||||
|
|
||||||
task = list(bug.bug_tasks)[0]
|
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]
|
package = task.bug_target_name.split(" ")[0]
|
||||||
if package == "ubuntu":
|
if package == "ubuntu":
|
||||||
# no source package was defined. Guessing that the second word in
|
# no source package was defined. Guessing that the second word in
|
||||||
# the title is the package name
|
# the title is the package name
|
||||||
package = bug.title.split(" ")[1]
|
package = bug.title.split(" ")[1]
|
||||||
if version is None:
|
if version is None or len(bug_numbers) > 1:
|
||||||
version = get_version(bug.title)
|
version = get_version(bug.title)
|
||||||
print "package:", package
|
print "package:", package
|
||||||
print "version:", version
|
print "version:", version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user