build: fixed a configure error with a totally clean tree
authorAndrew Tridgell <tridge@samba.org>
Mon, 29 Mar 2010 11:32:03 +0000 (22:32 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:17 +0000 (20:27 +1000)
buildtools/wafsamba/wafsamba.py

index 826760c02eb5b46a69000c4f942bc8a1685a52dd..9be10bfdbb2f2d5b7d44e1cea8990315ce4c85a8 100644 (file)
@@ -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)