]> git.decadent.org.uk Git - dak.git/commitdiff
dak/control_suite.py (main): Handle SystemError exception in case of a incompatible...
authorOtavio Salvador <otavio@ossystems.com.br>
Sat, 14 Jun 2008 18:00:41 +0000 (15:00 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Sat, 14 Jun 2008 18:29:44 +0000 (15:29 -0300)
ChangeLog
dak/control_suite.py

index 2c751e9a1ce7c96a5d39eb66fee6a1cd40867ca7..3957281db39563fed8eae3c9d6cc27547372ef28 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 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
 
index 4cb5bd3805e3c4fa0b03efe7ce8e308247f80f89..4b704b97b9aaf133b18e5894013e2d2cb1ddb728 100644 (file)
@@ -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"]: