sbin/sync/fabfile.py
changeset 82 cb842369c5ca
parent 79 4afe089760bc
child 86 bb39eafd5293
--- a/sbin/sync/fabfile.py	Wed Jun 13 16:36:52 2012 +0200
+++ b/sbin/sync/fabfile.py	Wed Jun 13 18:53:28 2012 +0200
@@ -206,7 +206,7 @@
     relaunch_server()
     
 @task
-def update_ldt(version):
+def update_lib(version, package):
     print(green("update ldt with version %s" % version))
     export_path = export_version(version)
     lib_path = os.path.join(export_path, "virtualenv", "res", "lib")
@@ -216,9 +216,9 @@
     f, pathname, description = imp.find_module("lib_create_env", [lib_path])
     lib_create_env = imp.load_module("lib_create_env", f, pathname, description)
     
-    ldt_path = os.path.join(export_path, "virtualenv", "res", "src", lib_create_env.URLS['LDT']['local'])
+    package_path = os.path.join(export_path, "virtualenv", "res", "src", lib_create_env.URLS[package]['local'])
     
-    sync_install_build(ldt_path)
+    sync_install_build(package_path)
     clean_export_folder(export_path)
     relaunch_server()