Skip to content

Commit 9223640

Browse files
authored
fix: Pack.all returning duplicate files in overlays (#453)
1 parent 28a4f2f commit 9223640

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

beet/library/base.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,12 +1248,12 @@ def all(
12481248
proxy = self[file_type]
12491249
for path in proxy.match(*match or ["*"]):
12501250
yield path, proxy[path]
1251-
if self.overlay_parent is None:
1252-
for overlay in self.overlays.values():
1253-
if extend:
1254-
yield from overlay.all(*match, extend=extend)
1255-
else:
1256-
yield from overlay.all(*match)
1251+
if self.overlay_parent is None:
1252+
for overlay in self.overlays.values():
1253+
if extend:
1254+
yield from overlay.all(*match, extend=extend)
1255+
else:
1256+
yield from overlay.all(*match)
12571257

12581258
@property
12591259
def supported_formats(self) -> Optional[SupportedFormats]:

0 commit comments

Comments
 (0)