aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pkgcheck/checks/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkgcheck/checks/git.py b/src/pkgcheck/checks/git.py
index b6777161..d4ab12ff 100644
--- a/src/pkgcheck/checks/git.py
+++ b/src/pkgcheck/checks/git.py
@@ -388,7 +388,7 @@ class GitPkgCommitsCheck(GentooRepoCheck, GitCommitsCheck):
for eclass in new_pkg.inherit
)
current_eapi = int(str(new_pkg.eapi))
- common_max_eapi = max(frozenset.intersection(*eclass_eapis), 0)
+ common_max_eapi = max(frozenset.intersection(*eclass_eapis), default=0)
if common_max_eapi > current_eapi:
yield NewerEAPIAvailable(common_max_eapi, pkg=new_pkg)