提交 7dc892fe 编写于 作者: A Ansgar Burchardt

Use parameter passed to the --suite option

We used the remaining parameters before which is somewhat confusing.
上级 ad0ef180
...@@ -361,7 +361,7 @@ def main(): ...@@ -361,7 +361,7 @@ def main():
('f',"force","Generate-Packages-Sources::Options::Force"), ('f',"force","Generate-Packages-Sources::Options::Force"),
('o','option','','ArbItem')] ('o','option','','ArbItem')]
suite_names = apt_pkg.parse_commandline(cnf.Cnf, Arguments, sys.argv) apt_pkg.parse_commandline(cnf.Cnf, Arguments, sys.argv)
try: try:
Options = cnf.subtree("Generate-Packages-Sources::Options") Options = cnf.subtree("Generate-Packages-Sources::Options")
except KeyError: except KeyError:
...@@ -382,6 +382,7 @@ def main(): ...@@ -382,6 +382,7 @@ def main():
if Options.has_key("Suite"): if Options.has_key("Suite"):
suites = [] suites = []
suite_names = Options['Suite'].split(',')
for s in suite_names: for s in suite_names:
suite = get_suite(s.lower(), session) suite = get_suite(s.lower(), session)
if suite: if suite:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册