summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rwxr-xr-xwscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/wscript b/wscript
index fcf4a0ff6a..37c25de4dd 100755
--- 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])