[cig-commits] r18534 - cs/buildbot/trunk/buildbot/scripts
brad at geodynamics.org
brad at geodynamics.org
Fri Jun 3 09:54:44 PDT 2011
Author: brad
Date: 2011-06-03 09:54:43 -0700 (Fri, 03 Jun 2011)
New Revision: 18534
Modified:
cs/buildbot/trunk/buildbot/scripts/packager.py
Log:
Use shutil.copy() rather than os.system(cp). Add more status reports.
Modified: cs/buildbot/trunk/buildbot/scripts/packager.py
===================================================================
--- cs/buildbot/trunk/buildbot/scripts/packager.py 2011-06-03 01:07:50 UTC (rev 18533)
+++ cs/buildbot/trunk/buildbot/scripts/packager.py 2011-06-03 16:54:43 UTC (rev 18534)
@@ -3,6 +3,7 @@
from popen2 import Popen4
from glob import glob
from os.path import basename, dirname, isabs, isdir, isfile, join
+import shutil
from buildbot.meta import Config, getNamePackageAndVersion
@@ -231,7 +232,8 @@
src = join(prefix, src)
if not isdir(dest):
os.makedirs(dest)
- os.system("cp -r %s %s" % (src, dest))
+ shutil.copy(src, dest)
+ #os.system("cp -r %s %s" % (src, dest))
return
@@ -385,8 +387,10 @@
os.mkdir(stage)
os.chdir(stage)
+ print "Copying packing list to %s." % stage
copyAll(pl.files(), prefix)
+ print "Installing minimal cygwin."
installMinimalCygwin(python, prefix)
rebaseDLLs(stage)
More information about the CIG-COMMITS
mailing list