From 3b3d7bb6029bf7c89abec0fb0b455a6154b0d0bf Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 3 Sep 2012 18:43:33 +1000 Subject: build: Only make bin/ if it does not exist --- wscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wscript') 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]) -- cgit