diff options
author | mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> | 2006-10-07 23:12:18 +0000 |
---|---|---|
committer | mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> | 2006-10-07 23:12:18 +0000 |
commit | cd7f640184c585bfeda2615109906206001a3183 (patch) | |
tree | 547b4e759916a33bfaf4f51988c2ff76f973d9fb /mirror | |
parent | 539490c86195cd0538c1fe73f5906120b10eb3b6 (diff) |
Stop mirroring broken-out/ directories, and fix quoting of trigger scan
file
git-svn-id: svn://test.kernel.org/autotest/trunk@301 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'mirror')
-rwxr-xr-x | mirror/mirror.py | 4 | ||||
-rwxr-xr-x | mirror/rsync.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/mirror/mirror.py b/mirror/mirror.py index bda7c668..e0881788 100755 --- a/mirror/mirror.py +++ b/mirror/mirror.py @@ -1,7 +1,7 @@ #!/usr/bin/python2.4 import os, rsync, trigger -excludes = ('2.6.0-test*/', '*.sign', '*.gz') +excludes = ('2.6.0-test*/', 'broken-out/', '*.sign', '*.gz') if 'MIRROR_DIR' in os.environ: target = os.environ['MIRROR_DIR'] @@ -18,5 +18,5 @@ mirror.sync('v2.6/linux-2.6.[0-9][0-9].tar.bz2', 'kernel/v2.6') mirror.sync('v2.6/snapshots/*.bz2', 'kernel/v2.6/snapshots') mirror.sync('people/akpm/patches/2.6/*', 'akpm') -for t in trigger.scan('mirror.tmpfile'): +for t in trigger.scan(mirror.tmpfile): print t diff --git a/mirror/rsync.py b/mirror/rsync.py index 23812763..7cf13046 100755 --- a/mirror/rsync.py +++ b/mirror/rsync.py @@ -27,6 +27,6 @@ class rsync: os.mkdir(dest) src = os.path.join(self.prefix, src) cmd = self.command + ' %s "%s" "%s"' % (self.exclude, src, dest) - print cmd + ' >> %s 2>&1' % self.tmpfile - if os.system(cmd + ' > %s 2>&1' % self.tmpfile): + # print cmd + ' >> %s 2>&1' % self.tmpfile + if os.system(cmd + ' >> %s 2>&1' % self.tmpfile): raise 'rsync command failed' |