# HG changeset patch # User Andreas Woess # Date 1403882668 -7200 # Node ID f5437f2db322c6109299109319a08c6f79a43841 # Parent 0e092c1ecd6422d6cbf3b8090bf8d1dc6bd99c5c mx fsckprojects: do not traverse lib subdirectory diff -r 0e092c1ecd64 -r f5437f2db322 mxtool/mx.py --- a/mxtool/mx.py Thu Jun 26 18:04:47 2014 +0200 +++ b/mxtool/mx.py Fri Jun 27 17:24:28 2014 +0200 @@ -4163,9 +4163,8 @@ projectDirs = [p.dir for p in suite.projects] for dirpath, dirnames, files in os.walk(suite.dir): if dirpath == suite.dir: - # no point in traversing .hg - if '.hg' in dirnames: - dirnames.remove('.hg') + # no point in traversing .hg or lib/ + dirnames[:] = [d for d in dirnames if d not in ['.hg', 'lib']] elif dirpath in projectDirs: # don't traverse subdirs of an existing project in this suite dirnames[:] = []