aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-02-07 19:41:02 +0000
committerlloyd <[email protected]>2011-02-07 19:41:02 +0000
commit80d591ec716fb6cea829db45b68da1af4afd1d0e (patch)
tree99c98f40093a91d6adb68a55f821b3fa30468d2d
parent6aae5ab9f16af0fc0f027bc0c4dc3ee4ee239510 (diff)
Apply a patch to configure contributed by Lyon Chen in PR 134.
This doen't fix all the cases were bogus symlinks are generated, but it helps one particular useful case.
-rwxr-xr-xconfigure.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index 7dd89600a..b5422fdac 100755
--- a/configure.py
+++ b/configure.py
@@ -1213,7 +1213,7 @@ def setup_build(build_config, options, template_vars):
if 'symlink' in os.__dict__:
def count_dirs(dir, accum = 0):
- if dir == '' or dir == os.path.curdir:
+ if dir in ['', '/', os.path.curdir]:
return accum
(dir,basename) = os.path.split(dir)
return accum + 1 + count_dirs(dir)