diff options
author | Auke Booij (tulcod) <auke@tulcod.com> | 2010-07-30 19:49:07 +0200 |
---|---|---|
committer | Auke Booij (tulcod) <auke@tulcod.com> | 2010-07-30 19:49:07 +0200 |
commit | a56cb8b0a1c0304c0c576505010092ad27ff1967 (patch) | |
tree | 7b27f37a6535c135fccc4d36f669d6d1fbc7aeb9 | |
parent | Even more actions should be working now. Added config file support. (diff) | |
download | g-cran-a56cb8b0a1c0304c0c576505010092ad27ff1967.tar.gz g-cran-a56cb8b0a1c0304c0c576505010092ad27ff1967.tar.bz2 g-cran-a56cb8b0a1c0304c0c576505010092ad27ff1967.zip |
Fixes
-rw-r--r-- | g_common/g_common.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/g_common/g_common.py b/g_common/g_common.py index e4932b9..e29a133 100644 --- a/g_common/g_common.py +++ b/g_common/g_common.py @@ -1,5 +1,5 @@ #!/usr/bin/python -import getopt, sys, os, string, urllib, re, configparser, subprocess +import getopt, sys, os, string, urllib, re, ConfigParser, subprocess import settings #__doc__="Usage: "+sys.argv[0]+" <local repository directory> <action> [<action arguments>...]" @@ -32,7 +32,7 @@ def read_repo_config(repo_location): #sync a local repository's PACKAGES file def action_sync(repo_location,driver,remote_uri): - if driver=None: + if driver==None: repo_conf=read_repo_config(repo_location) driver=repo_conf['driver'] driver_conf=read_driver_config(driver) @@ -136,7 +136,7 @@ def main(): sys.exit(1) package_name=arguments[2] action_package(repo_location,package_name) - elif action=='usage': + elif action=='usage' or action=='help': usage() elif action in pms_phases: #todo |