We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd6de18 commit 58db3afCopy full SHA for 58db3af
1 file changed
python/nix_csi/store.py
@@ -12,8 +12,11 @@ def extract_store_paths(value: Any) -> Iterator[Path]:
12
for m in STORE_PATH_RE.finditer(value):
13
yield Path(m.group())
14
case Mapping():
15
- for v in value.values():
16
- yield from extract_store_paths(v)
+ for k, v in value.items():
+ # volumeAttributes might contain multiarch paths which we don't want to include.
17
+ # storePaths in volumeAttributes are handled as "primary package".
18
+ if k != "volumeAttributes":
19
+ yield from extract_store_paths(v)
20
case Sequence():
21
for item in value:
22
yield from extract_store_paths(item)
0 commit comments