From a56cb8b0a1c0304c0c576505010092ad27ff1967 Mon Sep 17 00:00:00 2001 From: "Auke Booij (tulcod)" Date: Fri, 30 Jul 2010 19:49:07 +0200 Subject: Fixes --- g_common/g_common.py | 6 +++--- 1 file 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]+" [...]" @@ -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 -- cgit v1.2.3-65-gdbad