提交 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():
('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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册