Author: waldi
Date: Sun Jun 17 11:06:30 2007
New Revision: 8984
Log:
debian/bin/genorig.py: Bail out if destination already exists.
Modified:
dists/trunk/linux-2.6/debian/bin/genorig.py
Modified: dists/trunk/linux-2.6/debian/bin/genorig.py
==============================================================================
--- dists/trunk/linux-2.6/debian/bin/genorig.py (original)
+++ dists/trunk/linux-2.6/debian/bin/genorig.py Sun Jun 17 11:06:30 2007
@@ -67,6 +67,10 @@
try:
os.mkdir("../orig")
except OSError: pass
+ try:
+ os.stat(out)
+ raise RuntimeError("Destination already exists")
+ except OSError: pass
self.log("Generate tarball %s\n" % out)
cmdline = ['tar -czf', out, '-C', self.dir, self.orig]
if os.spawnv(os.P_WAIT, '/bin/sh', ['sh', '-c', ' '.join(cmdline)]):
_______________________________________________
Kernel-svn-changes mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/kernel-svn-changes