]> git.decadent.org.uk Git - dak.git/commitdiff
dak/rm: Pass a list of bugs to remove() rather than a string
authorNiels Thykier <niels@thykier.net>
Sun, 21 Jun 2015 17:52:28 +0000 (19:52 +0200)
committerNiels Thykier <niels@thykier.net>
Sun, 21 Jun 2015 17:52:28 +0000 (19:52 +0200)
Signed-off-by: Niels Thykier <niels@thykier.net>
dak/rm.py

index f43f72b670d44bfc490e9767cb597366f1e1afc4..fa50cf2d886a27f1055ebd083b4159ce6d4a98f2 100755 (executable)
--- a/dak/rm.py
+++ b/dak/rm.py
@@ -351,9 +351,10 @@ def main ():
     sys.stdout.flush()
 
     try:
+        bugs = utils.split_args(Options["Done"])
         remove(session, Options["Reason"], suites, to_remove,
                partial=Options["Partial"], components=utils.split_args(Options["Component"]),
-               done_bugs=Options["Done"], carbon_copy=carbon_copy, close_related_bugs=Options["Do-Close"]
+               done_bugs=Options["Done"], carbon_copy=carbon_copy, close_related_bugs=bugs
                )
     except ValueError as ex:
         utils.fubar(ex.message)