Skip to content

Commit 795fb64

Browse files
committed
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@gmail.com>
1 parent f114c26 commit 795fb64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pkgcore/repository/prototype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __getitem__(self, key):
7676
o = self._cache.get(key)
7777
if o is not None:
7878
return o
79-
if not key[1] in self._parent.get(key[0], ()):
79+
if key[1] not in self._parent.get(key[0], ()):
8080
raise KeyError(key)
8181
val = tuple(self._pull_vals(key))
8282
self._cache[key] = val

0 commit comments

Comments
 (0)