Update gcc regexp to handle gcc versions > 9

This commit is contained in:
Steve Langasek 2020-09-04 08:27:58 -07:00 committed by Iain Lane
parent dfe2205bc7
commit fd48bfe54b

View File

@ -657,7 +657,7 @@ class AutopkgtestPolicy(BasePolicy):
# serves no purpose. Just check some key packages which actually use
# gcc during the test, and doxygen as an example for a libgcc user.
if src.startswith('gcc-'):
if re.match(r'gcc-\d$', src) or src == 'gcc-defaults':
if re.match(r'gcc-\d+$', src) or src == 'gcc-defaults':
# add gcc's own tests, if it has any
srcinfo = source_suite.sources[src]
if 'autopkgtest' in srcinfo.testsuite: