diff --git a/pkgcrap/outdated_check.py b/pkgcrap/outdated_check.py index eab24d9..919e8a0 100644 --- a/pkgcrap/outdated_check.py +++ b/pkgcrap/outdated_check.py @@ -76,8 +76,11 @@ def repo_get_latest_git(uri, pkg, verbose): continue if tag.startswith(pkg.name): tag = tag[len(pkg.name):] - if tag.startswith('version'): - tag = tag[7:] + version_prefixes = ['version', 'release'] + for prefix in version_prefixes: + if tag.startswith(prefix): + tag = tag[len(prefix):] + break if not tag[0].isdigit() and tag[1].isdigit(): tag = tag[1:] tags.append(tag)