Merge with b87b4aeed5d1acf38c69284519c182c1a7d03543
authorymh <ymh.work@gmail.com>
Thu, 14 Jun 2012 10:48:26 +0200
changeset 83 66facca7e79b
parent 82 cb842369c5ca (diff)
parent 81 b87b4aeed5d1 (current diff)
child 84 ee09106d383d
Merge with b87b4aeed5d1acf38c69284519c182c1a7d03543
--- a/sbin/sync/fabfile.py	Wed Jun 13 18:34:23 2012 +0200
+++ b/sbin/sync/fabfile.py	Thu Jun 14 10:48:26 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()