guix: Include packages that don't have a local store item.

This commit is contained in:
Pierre Neidhardt 2020-09-26 16:12:48 +02:00
parent 0127cfa5d0
commit c080c949d6
No known key found for this signature in database
GPG key ID: 9BDCF497A4BBCC7F

View file

@ -57,7 +57,7 @@ (define* (add-files db
(system (error "Missing argument"))
(output "out")
(path (error "Missing argument"))
(files (error "Missing argument"))
files
(version (error "Missing argument"))
(synopsis (error "Missing argument"))
(description (error "Missing argument"))
@ -147,17 +147,17 @@ (define (persist-package-files db package)
((output . path)
;; TODO: Don't list files if entry is already in database.
;; TODO: Try fetching info from remote substitute server database.
(when (file-exists? path)
(add-files db ; TODO: Merge this function and add-files?
#:name (package-name package)
#:system system
#:output output
#:path path ; Storing /gnu/store for all packages has no significant size cost.
#:version (package-version package)
#:synopsis (package-synopsis package)
#:description (package-description package)
#:guix-version %guix-version
#:files (directory-files path)))))
;; (when (file-exists? path))
(add-files db ; TODO: Merge this function and add-files?
#:name (package-name package)
#:system system
#:output output
#:path path ; Storing /gnu/store for all packages has no significant size cost.
#:version (package-version package)
#:synopsis (package-synopsis package)
#:description (package-description package)
#:guix-version %guix-version
#:files (directory-files path))))
output-path-pairs)))
(define (search-file-package pattern . more-patterns)