summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--g_common/g_common.py6
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