[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r21024: {projects} Clumsy workaround for Squeeze rsync vs. the world (projects/gettor/lib/gettor)
Author: kaner
Date: 2009-11-26 15:40:43 -0500 (Thu, 26 Nov 2009)
New Revision: 21024
Modified:
projects/gettor/lib/gettor/packages.py
Log:
Clumsy workaround for Squeeze rsync vs. the world
Modified: projects/gettor/lib/gettor/packages.py
===================================================================
--- projects/gettor/lib/gettor/packages.py 2009-11-26 19:52:55 UTC (rev 21023)
+++ projects/gettor/lib/gettor/packages.py 2009-11-26 20:40:43 UTC (rev 21024)
@@ -155,10 +155,23 @@
if not silent:
rsync.append("--progress")
rsync.append("rsync://%s/tor/dist/" % mirror)
- rsync.append("rsync://%s/tor/torbrowser/dist/" % mirror)
+ rsync2 = ["rsync"]
+ rsync2.append("-a")
+ # Exclude stuff we don't need
+ rsync2.append("--exclude=*current*")
+ rsync2.append("--exclude=*osx*")
+ rsync2.append("--exclude=*rpm*")
+ rsync2.append("--exclude=*privoxy*")
+ rsync2.append("--exclude=*alpha*")
+ if not silent:
+ rsync2.append("--progress")
+ rsync2.append("rsync://%s/tor/torbrowser/dist/" % mirror)
+ rsync2.append(self.distDir)
rsync.append(self.distDir)
process = subprocess.Popen(rsync)
process.wait()
+ process = subprocess.Popen(rsync2)
+ process.wait()
return process.returncode
def getCommandToStr(self, mirror, silent):