summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-17 08:50:49 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:49 +1000
commit3c9e8e18aac7ba5e0446a38741a3fe6af8936651 (patch)
tree52be5969a22eb893d18a685a6e9e5b8fad43bb77
parent062c2b1fe6aa08273291c952e8a579b759fda986 (diff)
downloadsamba-3c9e8e18aac7ba5e0446a38741a3fe6af8936651.tar.gz
samba-3c9e8e18aac7ba5e0446a38741a3fe6af8936651.tar.bz2
samba-3c9e8e18aac7ba5e0446a38741a3fe6af8936651.zip
build: check that the symlink doesn't exist before creating
-rw-r--r--buildtools/wafsamba/wafsamba.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index a6b9552313..db4b7b80d2 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -29,8 +29,11 @@ def SAMBA_BUILD_ENV(conf):
mkdir_p(os.path.join(conf.blddir, 'python/samba/dcerpc'))
# this allows all of the bin/shared and bin/python targets
# to be expressed in terms of build directory paths
- os.symlink('../python', os.path.join(conf.blddir, 'default/python'))
- os.symlink('../shared', os.path.join(conf.blddir, 'default/shared'))
+ for p in ['python','shared']:
+ link_target = os.path.join(conf.blddir, 'default/' + p)
+ if not os.path.lexists(link_target):
+ os.symlink('../' + p, link_target)
+
################################################################