guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/07: guix: nar: Update path-id to valid-path-id.


From: guix-commits
Subject: 03/07: guix: nar: Update path-id to valid-path-id.
Date: Sun, 7 Apr 2024 14:48:23 -0400 (EDT)

cbaines pushed a commit to branch master
in repository guix.

commit acd3cb258fe68548b3c14b3b7819a46e2cd2da97
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sun Apr 7 19:32:33 2024 +0100

    guix: nar: Update path-id to valid-path-id.
    
    To match the change in (guix store database).
    
    * guix/nar.scm (finalize-store-file): Update path-id to valid-path-id.
    
    Change-Id: I69255c7acc1ea4e4855a4621bfcec54f595dd24d
---
 guix/nar.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/guix/nar.scm b/guix/nar.scm
index a817b56007..cabcc4bbbf 100644
--- a/guix/nar.scm
+++ b/guix/nar.scm
@@ -103,11 +103,11 @@ held."
             (acquire-lock file)))))
 
   (with-database %default-database-file db
-    (unless (path-id db target)
+    (unless (valid-path-id db target)
       (let ((lock (and lock?
                        (acquire-lock (string-append target ".lock")))))
 
-        (unless (path-id db target)
+        (unless (valid-path-id db target)
           ;; If FILE already exists, delete it (it's invalid anyway.)
           (when (file-exists? target)
             (delete-file-recursively target))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]