mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 13:36:36 +01:00
guix: Include packages that don't have a local store item.
This commit is contained in:
parent
0127cfa5d0
commit
c080c949d6
1 changed files with 12 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue