Skip to content

Commit 1a0b526

Browse files
committed
fix: debug windows shim logic
Modified: • src/omnipkg/dispatcher.py (+6/-0 lines) [gitship-generated]
1 parent 235367f commit 1a0b526

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/omnipkg/dispatcher.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,14 @@ def _install_binary_into_bin_dir(binary_tmp, target_bin, src_hash: str, debug: b
548548
target_bin = Path(target_bin)
549549

550550
_exe = ".exe" if sys.platform == "win32" else ""
551+
if debug:
552+
print(f"[C-INSTALL] install: target_bin={target_bin} exists={target_bin.exists()}", file=sys.stderr)
553+
print(f"[C-INSTALL] install: target_bin contents={list(target_bin.iterdir()) if target_bin.exists() else 'N/A'}", file=sys.stderr)
554+
print(f"[C-INSTALL] install: binary_tmp={binary_tmp} exists={Path(binary_tmp).exists()}", file=sys.stderr)
551555
for name in ("8pkg", "omnipkg", "OMNIPKG", "8PKG"):
552556
target = target_bin / (name + _exe)
557+
if debug:
558+
print(f"[C-INSTALL] install: checking {target} exists={target.exists()}", file=sys.stderr)
553559
if target.exists():
554560
try:
555561
shutil.copy2(str(binary_tmp), str(target))

0 commit comments

Comments
 (0)