mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-01 22:08:56 -06:00
refactor: build platform packs without printing
build_platform_pack and build_split_packs return what the build came to and print nothing. print_platform_pack holds the report lines, and generate_pack and generate_split_packs compose the two. The variant choice, the plan and the data directory pass return their notices instead of printing them. The callers that silenced stdout to get a record now call the builder.
This commit is contained in:
1 parent
977d3f6874
commit
d8570c6480
15 files changed
+295
-205
No files matched your search
@@ -89,9 +89,8 @@ class RealListParity(unittest.TestCase):
|
||||
the list serves from the collection is no choice of either option."""
|
||||
base = self.config(plat).get("base_destination", "")
|
||||
record = archive.PackRecord()
|
||||
with contextlib.redirect_stdout(io.StringIO()), \
|
||||
contextlib.redirect_stderr(io.StringIO()):
|
||||
platformpack.generate_pack(
|
||||
with contextlib.redirect_stderr(io.StringIO()):
|
||||
platformpack.build_platform_pack(
|
||||
plat, str(REPO_ROOT / "platforms"), self.db, str(REPO_ROOT / "bios"),
|
||||
tempfile.gettempdir(), emulators_dir=str(REPO_ROOT / "emulators"),
|
||||
zip_contents=self.zip_contents, emu_profiles=self.profiles,
|
||||
|
||||
Reference in new issue
Block a user