use table_from_list in Packages_details and check for completenes there, too

This commit is contained in:
Axel Kohlmeyer
2020-02-22 13:25:21 -05:00
parent b1757bb26c
commit 6b79b1f978
3 changed files with 97 additions and 30 deletions

View File

@ -76,6 +76,22 @@ for p in usrpkg:
print("User package %s missing in Packages_user.rst"
% p)
fp = open(os.path.join(doc,'Packages_details.rst'))
text = fp.read()
fp.close()
matches = re.findall(':ref:`([A-Z0-9]+) <PKG-\\1>`',text,re.MULTILINE)
for p in stdpkg:
if not p in matches:
++counter
print("Standard package %s missing in Packages_details.rst"
% p)
matches = re.findall(':ref:`(USER-[A-Z0-9]+) <PKG-\\1>`',text,re.MULTILINE)
for p in usrpkg:
if not p in matches:
++counter
print("User package %s missing in Packages_details.rst"
% p)
if counter:
print("Found %d issue(s) with package lists" % counter)