commit: 795fb64e85892f396b4a10fc5574c1d2ae571da9
Author: Brian Harring <ferringb <AT> gmail <DOT> com>
AuthorDate: Sat Oct 25 16:36:55 2025 +0000
Commit: Brian Harring <ferringb <AT> gmail <DOT> com>
CommitDate: Tue Oct 28 14:59:04 2025 +0000
URL:
https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=795fb64e
fix: corner case in prototype of VersionMappings
Note the 'not' placement; every repo derived from
this already does overriding so this has never
shown, but this effectively has been checking if a
boolean was there, instead of the actual key.
Signed-off-by: Brian Harring <ferringb <AT> gmail.com>
src/pkgcore/repository/prototype.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pkgcore/repository/prototype.py
b/src/pkgcore/repository/prototype.py
index 9424459c..c44cb3ce 100644
--- a/src/pkgcore/repository/prototype.py
+++ b/src/pkgcore/repository/prototype.py
@@ -76,7 +76,7 @@ class VersionMapping(DictMixin):
o = self._cache.get(key)
if o is not None:
return o
- if not key[1] in self._parent.get(key[0], ()):
+ if key[1] not in self._parent.get(key[0], ()):
raise KeyError(key)
val = tuple(self._pull_vals(key))
self._cache[key] = val