summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAuke Booij (tulcod) <auke@tulcod.com>2010-08-01 13:56:04 +0200
committerAuke Booij (tulcod) <auke@tulcod.com>2010-08-01 14:01:22 +0200
commit9b14a898195e1062b2f918fe0fe3a469649d6fc9 (patch)
tree3d75da703b6b66d49c74caa0357510ab4dd9e241
parentMerge branch 'gcommon' (diff)
downloadg-cran-9b14a898195e1062b2f918fe0fe3a469649d6fc9.tar.gz
g-cran-9b14a898195e1062b2f918fe0fe3a469649d6fc9.tar.bz2
g-cran-9b14a898195e1062b2f918fe0fe3a469649d6fc9.zip
Bad copy/paste removed; change the way drivers are called
-rw-r--r--g_common/g_common.py18
1 files changed, 4 insertions, 14 deletions
diff --git a/g_common/g_common.py b/g_common/g_common.py
index 90fecfa..d499721 100644
--- a/g_common/g_common.py
+++ b/g_common/g_common.py
@@ -59,28 +59,21 @@ def action_sync(repo_location,driver,remote_uri):
cfg_file.write('uri='+remote_uri+'\n')
cfg_file.close()
- return verbose_system(driver_conf['exec']+" "+repo_location+" sync "+remote_uri)
+ return os.system(driver_conf['exec']+" "+repo_location+" sync "+remote_uri)
#list categories in this repositorie
def list_categories(repo_location):
repo_conf=read_repo_config(repo_location)
driver_conf=read_driver_config(repo_conf['driver'])
- if remote_uri is None:
- remote_uri=repo_conf['uri']
-
- return verbose_system(driver_conf['exec']+" "+repo_location+" list-categories")
+ return os.system(driver_conf['exec']+" "+repo_location+" list-categories")
#idem ditto
def list_packages(repo_location):
repo_conf=read_repo_config(repo_location)
driver_conf=read_driver_config(repo_conf['driver'])
- if remote_uri is None:
- remote_uri=repo_conf['uri']
-
- return verbose_system(driver_conf['exec']+" "+repo_location+" list-packages")
-
+ return os.system(driver_conf['exec']+" "+repo_location+" list-packages")
#generate a tree of ebuilds... note that we only link ebuild files, instead of generating them
#we will, however, generate metadata.xml and Manifest files
@@ -112,10 +105,7 @@ def action_package(repo_location,package_name):
repo_conf=read_repo_config(repo_location)
driver_conf=read_driver_config(repo_conf['driver'])
- if remote_uri is None:
- remote_uri=repo_conf['uri']
-
- return verbose_system(driver_conf['exec']+" "+repo_location+" package "+package_name)
+ return os.system(driver_conf['exec']+" "+repo_location+" package "+package_name)
def usage():
print __doc__