diff options
-rw-r--r-- | buildtools/wafsamba/wafsamba.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 826760c02e..9be10bfdbb 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -44,7 +44,7 @@ def SAMBA_BUILD_ENV(conf): mkdir_p(blib_bld + '/man3') if os.path.islink(blib_src): os.unlink(blib_src) - else: + elif os.path.exists(blib_src): shutil.rmtree(blib_src) os.symlink(blib_bld, blib_src) |