Fix filtering of unneeded.yml

The regexps were supposed to match package names, but re.match does not
what I thought it does - it only matches the start of the line not the
end
This commit is contained in:
Stephan Kulow 2022-03-11 07:57:48 +01:00
parent 807b0f93a4
commit c8721fcb13

View File

@ -263,7 +263,7 @@ class PkgListGen(ToolBase.ToolBase):
# the FTP tree. We filter it with unneeded though to create a
# unsorted.yml file for release manager review
def _collect_unsorted_packages(self, modules, unsorted):
uneeded_regexps = [re.compile(r)
unneeded_regexps = [re.compile(r'\A' + r + r'\Z')
for r in self._parse_unneeded('unneeded.yml')]
packages = dict()
@ -278,7 +278,7 @@ class PkgListGen(ToolBase.ToolBase):
# copy
filtered = list(archpacks)
for r in uneeded_regexps:
for r in unneeded_regexps:
filtered = [p for p in filtered if not r.match(p)]
# convert to set