diff --git a/scripts/library_run.py b/scripts/library_run.py index 2e4d01f..c07bbe5 100644 --- a/scripts/library_run.py +++ b/scripts/library_run.py @@ -2047,6 +2047,13 @@ def process(src, args, dest=None, origin=None): quarantined = [] # [(trash path, original path)] targets = [live] if os.path.abspath(live) == os.path.abspath(src) else [] if not targets and os.path.exists(live): + # A DIRECTORY on the target name is not something to move aside: `--dest` takes a file + # path, so this is a mis-called run, and quietly renaming the owner's directory into the + # quarantine (measured 2026-11-01 14:18, an empty `out/`) hides the mistake instead of + # reporting it. + if os.path.isdir(live): + return ("FAIL install refused: %s exists and is a directory - `--dest` wants a file " + "path, nothing was replaced" % live), None targets = [live] # an older output already sitting on the target name for t in targets: if origin_used and os.path.abspath(t) == os.path.abspath(src): @@ -2118,7 +2125,8 @@ def process(src, args, dest=None, origin=None): "install": {"how": how, "tail": tail_msg, "cache_bypass": bool(bypassed and back_bypass), "quarantine": [os.path.basename(p) - for p, _ in quarantined] + retired}} + for p, _ in quarantined] + + [os.path.basename(p) for p in retired]}} finally: for p in (loc_src, loc_out):