[Piuparts-commits] rev 210 - trunk
Holger Levsen
holger at alioth.debian.org
Wed Mar 11 12:45:25 UTC 2009
Author: holger
Date: 2009-03-11 12:45:25 +0000 (Wed, 11 Mar 2009)
New Revision: 210
Modified:
trunk/piuparts.py
Log:
dont create directory if it exists.
Modified: trunk/piuparts.py
===================================================================
--- trunk/piuparts.py 2009-03-11 12:00:06 UTC (rev 209)
+++ trunk/piuparts.py 2009-03-11 12:45:25 UTC (rev 210)
@@ -558,7 +558,8 @@
#copy scripts dir into the chroot
if settings.scriptsdir is not None:
dest = self.relative("tmp/scripts/")
- os.mkdir(dest)
+ if not os.path.exists(self.relative("tmp/scripts/")):
+ os.mkdir(dest)
logging.debug("Copying scriptsdir to %s" % dest)
for file in os.listdir(settings.scriptsdir):
if (file.startswith("post_") or file.startswith("pre_")) and os.path.isfile(os.path.join((settings.scriptsdir), file)):
More information about the Piuparts-commits
mailing list