me
/
guix
Archived
1
0
Fork 0

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
master
Christopher Baines 2024-04-07 19:32:33 +01:00
parent c3dfb14f9b
commit acd3cb258f
No known key found for this signature in database
GPG Key ID: 5E28A33B0B84F577
1 changed files with 2 additions and 2 deletions

View File

@ -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))