2008-06-14 Otavio Salvador <otavio@debian.org>
+ * dak/control_suite.py (main): Handle SystemError exception in
+ case of a incompatible commandline parameter
+
* dak/check_overrides.py (main): Use case-insensitive comparing
for codename
if not Cnf.has_key("Control-Suite::Options::%s" % (i)):
Cnf["Control-Suite::Options::%s" % (i)] = ""
- file_list = apt_pkg.ParseCommandLine(Cnf,Arguments,sys.argv)
+ try:
+ file_list = apt_pkg.ParseCommandLine(Cnf,Arguments,sys.argv);
+ except SystemError, e:
+ print "%s\n" % e
+ usage(1)
Options = Cnf.SubTree("Control-Suite::Options")
if Options["Help"]: