build: Only make bin/ if it does not exist
authorAndrew Bartlett <abartlet@samba.org>
Mon, 3 Sep 2012 08:43:33 +0000 (18:43 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 3 Sep 2012 09:24:10 +0000 (19:24 +1000)
wscript

diff --git a/wscript b/wscript
index fcf4a0f..37c25de 100755 (executable)
--- a/wscript
+++ b/wscript
@@ -239,7 +239,8 @@ def dist():
 
     if sambaversion.IS_SNAPSHOT:
         # write .distversion file and add to tar
-        os.makedirs(blddir)
+        if not os.path.isdir(blddir):
+            os.makedirs(blddir)
         distversionf = tempfile.NamedTemporaryFile(mode='w', prefix='.distversion',dir=blddir)
         for field in sambaversion.vcs_fields:
             distveroption = field + '=' + str(sambaversion.vcs_fields[field])