Author: gnichols
Date: 2010-03-04 21:33:09 +0000 (Thu, 04 Mar 2010)
New Revision: 417
Modified:
trunk/tools/v7-repo-update.py
Log:
wget destination directory
Modified: trunk/tools/v7-repo-update.py
===================================================================
--- trunk/tools/v7-repo-update.py 2010-03-04 19:12:56 UTC (rev 416)
+++ trunk/tools/v7-repo-update.py 2010-03-04 21:33:09 UTC (rev 417)
@@ -10,7 +10,7 @@
v7Versions = ["1.1"]
brewURL = "http://porkchop.devel.redhat.com/brewroot/packages/v7"
workingDir = os.path.expanduser("~")
-downloadDir = "download.devel.redhat.com/brewroot/packages/v7"
+downloadDir = "porkchop.devel.redhat.com/brewroot/packages/v7"
testKitDir = "/mnt/bigpapi/testkits/V7"
@@ -23,9 +23,9 @@
print "cd " + workingDir
os.chdir(workingDir)
print "rm -rf " + downloadDir
- shutil.rmtree(downloadDir)
+ shutil.rmtree(downloadDir, ignore_errors=True)
command = "wget -r --no-parent --reject \"index.html*\" "
- command += os.path.join(brewURL, v7Version, v7Release + ".el" +
rhelVersion)
+ command += os.path.join(brewURL, v7Version, v7Release + ".el" +
rhelVersion + "/")
print command
os.system(command)
@@ -35,7 +35,7 @@
source = os.path.join(workingDir, downloadDir, v7Version, v7Release +
".el" + rhelVersion)
dest = os.path.join("RHEL" + rhelVersion, "v7", v7Version,
v7Release + ".el" + rhelVersion)
print "cp " + source + " " + dest
- shutil.rmtree(dest)
+ shutil.rmtree(dest, ignore_errors=True)
shutil.copytree(source, dest)
print "cd RHEL" + rhelVersion
os.chdir("RHEL" + rhelVersion)
Show replies by date