From ba70e0a9fcc9f7415445da71b15c9844570bf0e7 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 28 Apr 2025 06:53:43 -0700 Subject: build: config cache: preserve perms. * config-cache-hook.tl (try-save-current-config, try-restore-current-config): Preserve permissions when copying files, so ./reconfigure remains executable. --- config-cache-hook.tl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config-cache-hook.tl b/config-cache-hook.tl index 73b7e30b..7355c3f6 100755 --- a/config-cache-hook.tl +++ b/config-cache-hook.tl @@ -18,13 +18,13 @@ (when [all %files% path-exists-p] (let ((dir (path-cat %cachedir% sha))) (ensure-dir dir) - (copy-files %files% dir)))) + (copy-files %files% dir t)))) (defun try-restore-new-config (sha) (let* ((dir (path-cat %cachedir% sha)) (files [map (op path-cat dir) %files%])) (when [all files path-exists-p] - (copy-files files ".") + (copy-files files "." t) (put-line `restored cached configuration for @sha`)))) (match-case *args* -- cgit v1.2.3