diff --git a/komodo/lint.py b/komodo/lint.py index 09c271938..9d92c65f3 100755 --- a/komodo/lint.py +++ b/komodo/lint.py @@ -46,8 +46,8 @@ def _validate(pkg, ver, repo): def lint_release_name(pkgfile): relname = os.path.basename(pkgfile) found = False - for py_suffix in "-py27", "-py36", "-py38": - for rh_suffix in "", "-rhel6", "-rhel7": + for py_suffix in "-py27", "-py36", "-py38", "-py310": + for rh_suffix in "", "-rhel6", "-rhel7", "-rhel8": if relname.endswith(py_suffix + rh_suffix + ".yml"): found = True break @@ -56,7 +56,7 @@ def lint_release_name(pkgfile): _kerr( pkg=pkgfile, err="Invalid release name suffix. " - "Must be of the most -pyXX or -pyXX-rhelY", + "Must be of the form -pyXX[X] or -pyXX[X]-rhelY", ) ] diff --git a/tests/test_lint.py b/tests/test_lint.py index d14870b02..89344576e 100644 --- a/tests/test_lint.py +++ b/tests/test_lint.py @@ -47,6 +47,8 @@ def test_lint(): "bleeding-py36.yml", "/home/anyuser/komodo/2020.01.03-py36-rhel6.yml", "myrelease-py36.yml", + "myrelease-py310.yml", + "myrelease-py310-rhel8.yml", "myrelease-py36-rhel6.yml", "myrelease-py36-rhel7.yml", ),