commit: 3a24f4a136aabbbeb2394ec727bc07c86e4b5f90
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 17 16:18:00 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jan 17 16:18:00 2023 +0000
URL: https://gitweb.gentoo.org/proj/gentoopm.git/commit/?id=3a24f4a1
repo: Fix typing for global_use
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
gentoopm/basepm/repo.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gentoopm/basepm/repo.py b/gentoopm/basepm/repo.py
index 9265981..4a15e51 100644
--- a/gentoopm/basepm/repo.py
+++ b/gentoopm/basepm/repo.py
@@ -125,7 +125,8 @@ class PMEbuildRepository(PMRepository,
FillMissingComparisons):
line = line.strip()
if not line or line[0] == "#":
continue
- yield tuple(line.split(" - ", 1))
+ name, desc = line.split(" - ", 1)
+ yield (name, desc)
return {
name: GlobalUseFlag(name, desc) for name, desc in inner()
}