From unknown Thu Jun 19 14:04:20 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#76204 <76204@debbugs.gnu.org> To: bug#76204 <76204@debbugs.gnu.org> Subject: Status: [PATCH] system: skeleton-directory: Allow copying into subdirectories. Reply-To: bug#76204 <76204@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:04:20 +0000 retitle 76204 [PATCH] system: skeleton-directory: Allow copying into subdir= ectories. reassign 76204 guix-patches submitter 76204 Sughosha severity 76204 normal tag 76204 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 11 09:18:29 2025 Received: (at submit) by debbugs.gnu.org; 11 Feb 2025 14:18:29 +0000 Received: from localhost ([127.0.0.1]:55271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1thr5o-0007ZP-Nv for submit@debbugs.gnu.org; Tue, 11 Feb 2025 09:18:29 -0500 Received: from lists.gnu.org ([2001:470:142::17]:39254) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1thr5l-0007Z8-Cu for submit@debbugs.gnu.org; Tue, 11 Feb 2025 09:18:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1thr5P-0002zm-Eq for guix-patches@gnu.org; Tue, 11 Feb 2025 09:18:03 -0500 Received: from layka.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1thr5M-0005kY-Tw for guix-patches@gnu.org; Tue, 11 Feb 2025 09:18:03 -0500 Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 6EB5725B1E; Tue, 11 Feb 2025 15:17:58 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id jGhOn37NOCA9; Tue, 11 Feb 2025 15:17:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1739283474; bh=y8Idecv4Ec45+1dFBPWUV2ejUWPEfQGzdoQzJhzOGgk=; h=From:To:Cc:Subject:Date; b=SB/khR795a6yrz65pvgAvPOekiCMG9lisOqSwBI5o2NsgfdG+EvBSScqpkv+V0jny 3QEYqygOma1ly9uFnEx/SbvQc+ryCYUlAXI5vcUfWFnakNh4D0+G11hzZZGTI4zGze g+fhOtEQXHb5q0+9wSlnCnEFY0iM0OiWWyN97ereEl58B6AFuSVCCR14zeHWO02hEW 9/KGen67EnKRwgaBprgoekjrR/lgPPQf1Q0Y5jnaKC04tMJQRugPZkYIICFSaKAsu8 Nqujth93Fi7ayvZjMxoqHlaW6dcfYeSqvubaFVUC3DrMZD3HH8BETdEoh2Rm+if5Ri Vpvjl0bGZfZjg== From: Sughosha To: guix-patches@gnu.org Subject: [PATCH] system: skeleton-directory: Allow copying into subdirectories. Date: Tue, 11 Feb 2025 19:47:30 +0530 Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.21.23.139; envelope-from=sughosha@disroot.org; helo=layka.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit Cc: Sughosha X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) This fixes the error while copying the source to the target that is supposed to go into subdirectories that are not present yet. * gnu/shadow.scm (skeleton-directory): Create the parent directories of the target if not present before copying the source. Change-Id: I91e669968107d3d2b299b61b24ac1cc1895ebf76 --- gnu/system/shadow.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm index 48eca2564f..c68d8306fa 100644 --- a/gnu/system/shadow.scm +++ b/gnu/system/shadow.scm @@ -320,6 +320,9 @@ (define (skeleton-directory skeletons) ;; would just copy the symlinks as is. (for-each (match-lambda ((target source) + (when (not (directory-exists? + (dirname target))) + (mkdir-p (dirname target))) (copy-recursively source target))) '#$skeletons) ;; Make nanorc respect XDG_CONFIG_HOME. base-commit: 555937448cc510517011035fbf39c3687336759d -- 2.47.1