Skip to content

Commit

Permalink
Fix PrePackagedPackage source extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
elprans committed Oct 30, 2024
1 parent 493769e commit 8c02137
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metapkg/targets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1438,7 +1438,9 @@ def prepare_tarballs(self) -> None:
def unpack_sources(self) -> None:
if isinstance(self._root_pkg, mpkg_base.PrePackagedPackage):
assert len(self._tarballs) == 1
_, (_, tarball) = next(iter(self._tarballs.values()))
tarballs = next(iter(self._tarballs.values()))
assert len(tarballs) == 1
_, tarball = next(iter(tarballs))
self._io.write_line(f"<info>Extracting {tarball.name}...</>")
mpkg_sources.unpack(
tarball,
Expand Down

0 comments on commit 8c02137

Please sign in to comment.