jhbuild r2221 - in trunk: . jhbuild/commands



Author: fpeters
Date: Wed Aug 13 16:29:19 2008
New Revision: 2221
URL: http://svn.gnome.org/viewvc/jhbuild?rev=2221&view=rev

Log:
* jhbuild/commands/bot.py: don't call os.makedirs() when path already
exists.



Modified:
   trunk/ChangeLog
   trunk/jhbuild/commands/bot.py

Modified: trunk/jhbuild/commands/bot.py
==============================================================================
--- trunk/jhbuild/commands/bot.py	(original)
+++ trunk/jhbuild/commands/bot.py	Wed Aug 13 16:29:19 2008
@@ -175,7 +175,8 @@
         usepty = 1
         umask = None
         basedir = os.path.join(config.checkoutroot, 'jhbuildbot')
-        os.makedirs(os.path.join(basedir, 'builddir'))
+        if not os.path.exists(os.path.join(basedir, 'builddir')):
+            os.makedirs(os.path.join(basedir, 'builddir'))
 
         from buildbot.slave.bot import BuildSlave
         s = BuildSlave(master_host, master_port,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]