scripts: system: Rename `sqlite-register'.

* guix/scripts/system.scm (define-module): #:autoload `register-valid-path'
instead of `sqlite-register'.
(copy-item): Call it with the new name.

Change-Id: I24f71f822a5f400a47adee43f61184a4fbcb9741
Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Wojtek Kosior 2024-04-06 22:37:07 +02:00 committed by Christopher Baines
parent 78390634d7
commit a3c28d7f7e
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -35,7 +35,7 @@ (define-module (guix scripts system)
#:use-module (guix store)
#:autoload (guix base16) (bytevector->base16-string)
#:autoload (guix store database)
(sqlite-register store-database-file call-with-database)
(register-valid-path store-database-file call-with-database)
#:autoload (guix build store-copy) (copy-store-item)
#:use-module (guix describe)
#:use-module (guix gexp)
@ -158,13 +158,14 @@ (define* (copy-item item info target db
(copy-store-item item target
#:deduplicate? #t)
(sqlite-register db
(register-valid-path db
#:path item
#:references (path-info-references info)
#:deriver (path-info-deriver info)
#:hash (string-append
"sha256:"
(bytevector->base16-string (path-info-hash info)))
(bytevector->base16-string
(path-info-hash info)))
#:nar-size (path-info-nar-size info))))
(define* (copy-closure item target