Mercurial > hg > graal-jvmci-8
comparison mxtool/mx.py @ 16269:f5437f2db322
mx fsckprojects: do not traverse lib subdirectory
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Fri, 27 Jun 2014 17:24:28 +0200 |
parents | 55f369530122 |
children | 9fe3cb463079 |
comparison
equal
deleted
inserted
replaced
16268:0e092c1ecd64 | 16269:f5437f2db322 |
---|---|
4161 """find directories corresponding to deleted Java projects and delete them""" | 4161 """find directories corresponding to deleted Java projects and delete them""" |
4162 for suite in suites(True): | 4162 for suite in suites(True): |
4163 projectDirs = [p.dir for p in suite.projects] | 4163 projectDirs = [p.dir for p in suite.projects] |
4164 for dirpath, dirnames, files in os.walk(suite.dir): | 4164 for dirpath, dirnames, files in os.walk(suite.dir): |
4165 if dirpath == suite.dir: | 4165 if dirpath == suite.dir: |
4166 # no point in traversing .hg | 4166 # no point in traversing .hg or lib/ |
4167 if '.hg' in dirnames: | 4167 dirnames[:] = [d for d in dirnames if d not in ['.hg', 'lib']] |
4168 dirnames.remove('.hg') | |
4169 elif dirpath in projectDirs: | 4168 elif dirpath in projectDirs: |
4170 # don't traverse subdirs of an existing project in this suite | 4169 # don't traverse subdirs of an existing project in this suite |
4171 dirnames[:] = [] | 4170 dirnames[:] = [] |
4172 else: | 4171 else: |
4173 projectConfigFiles = frozenset(['.classpath', 'nbproject']) | 4172 projectConfigFiles = frozenset(['.classpath', 'nbproject']) |