diff --git a/tools/workspace_status.py b/tools/workspace_status.py index 86df519ed5..443c2f05b2 100644 --- a/tools/workspace_status.py +++ b/tools/workspace_status.py @@ -36,9 +36,11 @@ def revision(directory, parent): print("STABLE_BUILD_GERRIT_LABEL %s" % revision(ROOT, ROOT)) -for d in os.listdir(os.path.join(ROOT, 'plugins')): - p = os.path.join('plugins', d) - if os.path.isdir(p): - v = revision(p, ROOT) - print('STABLE_BUILD_%s_LABEL %s' % (os.path.basename(p).upper(), - v if v else 'unknown')) +for kind in ['modules', 'plugins']: + kind_dir = os.path.join(ROOT, kind) + for d in os.listdir(kind_dir): + p = os.path.join(kind_dir, d) + if os.path.isdir(p): + v = revision(p, ROOT) + print('STABLE_BUILD_%s_LABEL %s' % (os.path.basename(p).upper(), + v if v else 'unknown'))