diff options
author | jchu <jchu> | 2004-09-03 22:30:06 +0200 |
---|---|---|
committer | jchu <jchu> | 2004-09-03 22:30:06 +0200 |
commit | 47b7a53460953650eeadb2140da38095cd426628 (patch) | |
tree | f9197504fa16560ef33ef42d9f94e84da552363b /tupkg/server | |
parent | f841dbcf1ba07c841990186341c04a0c31da1cd5 (diff) | |
download | aur-47b7a53460953650eeadb2140da38095cd426628.tar.gz aur-47b7a53460953650eeadb2140da38095cd426628.tar.xz |
a little bit of tweaking
Diffstat (limited to 'tupkg/server')
-rwxr-xr-x | tupkg/server/tupkgs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tupkg/server/tupkgs b/tupkg/server/tupkgs index 63abaea0..1aba7947 100755 --- a/tupkg/server/tupkgs +++ b/tupkg/server/tupkgs @@ -197,7 +197,6 @@ def usage(name): print "usage: " + name + " [options]" print "options:" print " -c, --config Specify an alternate config file (default " + CONFIGFILE + ")" - sys.exit(2) def getDefaultConfig(): confdict = {} @@ -217,6 +216,7 @@ def main(argv=None): optlist, args = getopt.getopt(argv[1:], "c:", ["config="]) except getopt.GetoptError: usage(argv[0]) + return 1 conffile = CONFIGFILE @@ -227,6 +227,7 @@ def main(argv=None): if not os.path.isfile(conffile): print "Error: cannot access config file ("+conffile+")" usage(argv[0]) + return 1 config.read(conffile) |