]> git.decadent.org.uk Git - dak.git/commitdiff
Use parameter passed to the --suite option
authorAnsgar Burchardt <ansgar@debian.org>
Thu, 31 Mar 2016 19:17:44 +0000 (21:17 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Thu, 31 Mar 2016 19:17:44 +0000 (21:17 +0200)
We used the remaining parameters before which is somewhat confusing.

dak/generate_packages_sources2.py

index ed35498f710841b6dfca4535ba8467bba1275b8a..51d8e9b8d8f894fdb832d113122e81c1c459c9c0 100755 (executable)
@@ -361,7 +361,7 @@ def main():
                  ('f',"force","Generate-Packages-Sources::Options::Force"),
                  ('o','option','','ArbItem')]
 
-    suite_names = apt_pkg.parse_commandline(cnf.Cnf, Arguments, sys.argv)
+    apt_pkg.parse_commandline(cnf.Cnf, Arguments, sys.argv)
     try:
         Options = cnf.subtree("Generate-Packages-Sources::Options")
     except KeyError:
@@ -382,6 +382,7 @@ def main():
 
     if Options.has_key("Suite"):
         suites = []
+        suite_names = Options['Suite'].split(',')
         for s in suite_names:
             suite = get_suite(s.lower(), session)
             if suite: