commit:     4f08057161483e92cd64febac44ffbc1dd3bc718
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Thu May  9 19:38:42 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu May  9 19:38:42 2024 +0000
URL:        
https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=4f080571

NewerEAPIAvailable: fix code

Fixes: 4a7a02f60c9f87ad85670e0e798c5aadb8096c92
Resolves: https://github.com/pkgcore/pkgcheck/issues/679
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 src/pkgcheck/checks/git.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
 

Reply via email to