Skip to content

Commit 79a7b0e

Browse files
author
Po-Chien Hsueh
committed
Check project path to make sure it actully exists
Some old projects might be removed for some reason, especially the downstream ones. It should be fine to just skip analysing them because people have stopped working on them. Test: run the script against an old release Change-Id: I563905565c4c502036159fce6a386bba13ba25ea
1 parent 95ca7cc commit 79a7b0e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/repo_diff/repo_diff_trees.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ def get_projects(source_tree):
4545
path = project.get('path', project.get('name'))
4646
path = os.path.abspath(os.path.join(source_tree, path))
4747
name = project.get('name')
48+
49+
# check if project files actually exist
50+
if not os.path.exists(path):
51+
continue
52+
4853
projects[name] = path
4954

5055
return projects

0 commit comments

Comments
 (0)