From 273c340dfa6c0f1b0585732ef7db739885ff7f9c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 21 Sep 2026 10:40:17 +0200 Subject: [PATCH] Remove obsolete repository scan from locate test --- test/shell.d/locate-test.sh | 9 --------- 1 file changed, 9 deletions(-) diff --git a/test/shell.d/locate-test.sh b/test/shell.d/locate-test.sh index 58eacbbd..82c7a9be 100644 --- a/test/shell.d/locate-test.sh +++ b/test/shell.d/locate-test.sh @@ -32,15 +32,6 @@ check(command == ["/usr/bin/updatedb", *options], "locate service runs updatedb directly with fixed Btrfs options") check("ConditionACPower=true" in (root / "etc/systemd/system/plocate-updatedb.service.d/ac-only.conf").read_text(), "scheduled locate indexing keeps its AC-power condition") -check(not (root / "install/config/locate.sh").exists() and not (root / "migrations/1784809451.sh").exists(), - "the retired locate configuration helper and migration are absent") -for directory in ("bin", "install", "migrations"): - for path in (root / directory).rglob("*"): - if path.is_file(): - content = path.read_text() - if "OMARCHY_UPDATEDB_CONF_PATH" in content or "config/locate.sh" in content: - raise SystemExit("not ok - retired locate configuration path remains in " + str(path)) -check(True, "runtime and installation no longer reference the configuration rewrite") with tempfile.TemporaryDirectory(prefix="omarchy-locate-") as scratch: scratch = Path(scratch)