fine tune package check directory matching to not match bogus entries
This commit is contained in:
@ -49,7 +49,9 @@ pkgs = []
|
|||||||
# folder, and is not called 'MAKE' is a package
|
# folder, and is not called 'MAKE' is a package
|
||||||
|
|
||||||
for d in pkgdirs:
|
for d in pkgdirs:
|
||||||
pkg = dirs.match(d).group(1)
|
match = dirs.match(d)
|
||||||
|
if not match: continue
|
||||||
|
pkg = match.group(1)
|
||||||
if not os.path.isdir(os.path.join(src_dir, pkg)): continue
|
if not os.path.isdir(os.path.join(src_dir, pkg)): continue
|
||||||
if pkg in ['DEPEND','MAKE','STUBS']: continue
|
if pkg in ['DEPEND','MAKE','STUBS']: continue
|
||||||
pkgs.append(pkg)
|
pkgs.append(pkg)
|
||||||
|
|||||||
Reference in New Issue
Block a user