r401 - in branches/rewrite: . src

Otavio Salvador partial-mirror-devel@lists.alioth.debian.org
Mon, 13 Dec 2004 08:45:22 -0700


Author: otavio
Date: Mon Dec 13 08:45:18 2004
New Revision: 401

Modified:
   branches/rewrite/   (props changed)
   branches/rewrite/src/debpartial-mirror.in
Log:
 r555@nurf:  otavio | 2004-12-13T12:23:42.547737Z
 Fix namespaces.


Modified: branches/rewrite/src/debpartial-mirror.in
==============================================================================
--- branches/rewrite/src/debpartial-mirror.in	(original)
+++ branches/rewrite/src/debpartial-mirror.in	Mon Dec 13 08:45:18 2004
@@ -114,7 +114,7 @@
       usage()
     if o in ("-v", "--version"):
       version()
-      exit(0)
+      sys.exit(0)
     if o in ("-c", "--configfile"):
       if v == '':
         usage()
@@ -131,24 +131,24 @@
   # Load configuration file
   try:
     cnf = Config.Config(conffile)
-  except InvalidOption, msg:
+  except Config.InvalidOption, msg:
     print("Wrong option [%s] found on [%s] section of '%s'."
           % (msg.option, msg.section, conffile))
-    exit(1)
-  except InvalidSection, msg:
+    sys.exit(1)
+  except Config.InvalidSection, msg:
     print("Wrong section [%s] found on '%s'."
           % (msg.section, conffile))
-    exit(1)
-  except RequiredOptionMissing, msg:
+    sys.exit(1)
+  except Config.RequiredOptionMissing, msg:
     print("Required option [%s] was missing on [%s] section of '%s'."
           % (msg.option, msg.section, conffile))
-    exit(1)
+    sys.exit(1)
 
   # Verify if the section is valid
   if sect != None and not cnf.has_section(sect):
     print("Unknown MIRROR [%s] on '%s'."
           % (sect, conffile))
-    exit(1)
+    sys.exit(1)
 
   # Get available backends
   backends = []