MCPcopy Create free account
hub / github.com/conda/constructor / read_text

Method read_text

tests/test_examples.py:420–438  ·  view source on GitHub ↗
(self, last_digits: int = -15000)

Source from the content-addressed store, hash-verified

418 pre_uninstall_log: Path | None = None
419
420 def read_text(self, last_digits: int = -15000) -> str:
421 parts = [
422 f"Command: {self.cmd}",
423 f"Return code: {self.returncode}",
424 ]
425
426 if self.pre_uninstall_log:
427 parts.append(
428 f"\n=== MSI LOG PRE UNINSTALL: {self.pre_uninstall_log} ===\n"
429 + _read_briefcase_log_tail(self.pre_uninstall_log, last_digits)
430 )
431
432 if self.msi_log:
433 parts.append(
434 f"\n=== MSI LOG: {self.msi_log} ===\n"
435 + _read_briefcase_log_tail(self.msi_log, last_digits)
436 )
437
438 return "\n".join(parts)
439
440
441def _run_installer_msi(

Callers

nothing calls this directly

Calls 1

_read_briefcase_log_tailFunction · 0.85

Tested by

no test coverage detected