From 0e404ba2b411cfcd13d0d16c5e62a0e2f23527cd Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 26 Aug 2026 00:06:28 -0500 Subject: [PATCH] Update ar prose to match the rcs/qs ops --- esphome/build_gen/build_tool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/build_gen/build_tool.py b/esphome/build_gen/build_tool.py index a408b1586b..00aa1ec69d 100644 --- a/esphome/build_gen/build_tool.py +++ b/esphome/build_gen/build_tool.py @@ -4,7 +4,7 @@ Plain script (not ``python -m``): it runs from ninja with whatever Python started esphome and must not depend on the package being importable. Subcommands: - ar remove stale archive, then ``ar rc`` + ar remove stale archive, then ``ar rcs`` copy copy a file The ar rspfile carries one object path per line (the generating rule must @@ -35,7 +35,7 @@ def _read_rspfile(rspfile: str) -> list[str]: def _run_ar(ar: str, archive: str, rspfile: str) -> int: - # Remove first: ``ar rc`` replaces members but never drops ones whose + # Remove first: ``ar rcs`` replaces members but never drops ones whose # source was removed from the build, which would leak stale objects. Path(archive).unlink(missing_ok=True) objects = _read_rspfile(rspfile)