myserver-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myserver-commit] [2920] Fixed tar tree problem in the creation of plugi


From: Daniele Perrone
Subject: [myserver-commit] [2920] Fixed tar tree problem in the creation of plugin's packages
Date: Tue, 28 Oct 2008 19:51:28 +0000

Revision: 2920
          http://svn.sv.gnu.org/viewvc/?view=rev&root=myserver&revision=2920
Author:   dperrone
Date:     2008-10-28 19:51:27 +0000 (Tue, 28 Oct 2008)

Log Message:
-----------
Fixed tar tree problem in the creation of plugin's packages

Modified Paths:
--------------
    trunk/plugins/SConstruct

Modified: trunk/plugins/SConstruct
===================================================================
--- trunk/plugins/SConstruct    2008-10-28 00:03:08 UTC (rev 2919)
+++ trunk/plugins/SConstruct    2008-10-28 19:51:27 UTC (rev 2920)
@@ -54,7 +54,14 @@
       msheaders,
       '.'
       ]
+    
 
+def tar_package(src_dir, name, filename):
+    import tarfile
+    tarf = tarfile.open(filename.encode("ascii"),"w|gz")
+    tarf.add(src_dir + name,name)
+    tarf.close()
+
 def build_plugin(name):
     dest_dir = bin_dir + name
     SConscript([src_dir + name + "/SConscript"],['dest_dir','listinc'])
@@ -69,8 +76,7 @@
     doc = xml.dom.minidom.parse(bin_dir + name + "/plugin.xml")
     version = doc.getElementsByTagName("VERSION")
     filename = name + "-" + version[0].firstChild.data + ".tar.gz"
-    tarenv = Environment(TARFLAGS = '-c -z')
-    tarenv.Tar(release_dir + filename, bin_dir + name) 
+    tar_package(bin_dir, name, release_dir + filename) 
 
 
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]