[cig-commits] r18630 - cs/buildbot/trunk/buildbot/scripts
brad at geodynamics.org
brad at geodynamics.org
Tue Jun 14 17:37:04 PDT 2011
Author: brad
Date: 2011-06-14 17:37:04 -0700 (Tue, 14 Jun 2011)
New Revision: 18630
Modified:
cs/buildbot/trunk/buildbot/scripts/packager.py
Log:
Replace os.system(rm -rf) with shutil.rmtree().
Modified: cs/buildbot/trunk/buildbot/scripts/packager.py
===================================================================
--- cs/buildbot/trunk/buildbot/scripts/packager.py 2011-06-14 23:43:21 UTC (rev 18629)
+++ cs/buildbot/trunk/buildbot/scripts/packager.py 2011-06-15 00:37:04 UTC (rev 18630)
@@ -392,7 +392,7 @@
def stageWindowsInstallation(prefix, workdir, python, pl):
stage = join(workdir, "buildbot-win-stage")
- spawn("rm", "-rf", stage)
+ shutil.rmtree(stage)
os.mkdir(stage)
os.chdir(stage)
@@ -626,7 +626,7 @@
def installSource(pl, package, revision, url, workdir):
src = "src/" + package
- spawn("rm", "-rf", src)
+ shutil.rmtree(src)
if not isdir("src"):
os.makedirs("src")
if False:
More information about the CIG-COMMITS
mailing list