From: Otavio Salvador Date: Sat, 14 Jun 2008 18:00:41 +0000 (-0300) Subject: dak/control_suite.py (main): Handle SystemError exception in case of a incompatible... X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=179ab38980d9113ce5559773da018da8b6e176ca;hp=29f058b9f717dbae1319369d7b44c99dc9e6e162;p=dak.git dak/control_suite.py (main): Handle SystemError exception in case of a incompatible commandline parameter --- diff --git a/ChangeLog b/ChangeLog index 2c751e9a..3957281d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2008-06-14 Otavio Salvador + * 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 diff --git a/dak/control_suite.py b/dak/control_suite.py index 4cb5bd38..4b704b97 100644 --- a/dak/control_suite.py +++ b/dak/control_suite.py @@ -244,7 +244,11 @@ def main (): 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"]: