From: Ansgar Burchardt Date: Thu, 31 Mar 2016 19:17:44 +0000 (+0200) Subject: Use parameter passed to the --suite option X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=7dc892febdce541ffcf76d2ade1e892df02d6280;p=dak.git Use parameter passed to the --suite option We used the remaining parameters before which is somewhat confusing. --- diff --git a/dak/generate_packages_sources2.py b/dak/generate_packages_sources2.py index ed35498f..51d8e9b8 100755 --- a/dak/generate_packages_sources2.py +++ b/dak/generate_packages_sources2.py @@ -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: