Insert package derivations earlier
This commit is contained in:
parent
2da3a195ea
commit
587277f347
1 changed files with 20 additions and 20 deletions
|
|
@ -1557,6 +1557,26 @@
|
||||||
"inserting data"
|
"inserting data"
|
||||||
(let* ((package-ids
|
(let* ((package-ids
|
||||||
(insert-packages conn packages-data)))
|
(insert-packages conn packages-data)))
|
||||||
|
(let* ((package-derivation-ids
|
||||||
|
(with-time-logging "inferior-data->package-derivation-ids"
|
||||||
|
(inferior-data->package-derivation-ids
|
||||||
|
conn
|
||||||
|
inf
|
||||||
|
package-ids
|
||||||
|
inferior-packages-system-and-target-to-derivations-alist)))
|
||||||
|
(ids-count
|
||||||
|
(length package-derivation-ids)))
|
||||||
|
(chunk-for-each! (lambda (package-derivation-ids-chunk)
|
||||||
|
(insert-guix-revision-package-derivations
|
||||||
|
conn
|
||||||
|
guix-revision-id
|
||||||
|
package-derivation-ids-chunk))
|
||||||
|
2000
|
||||||
|
package-derivation-ids)
|
||||||
|
(simple-format
|
||||||
|
#t "Successfully loaded ~A package/derivation pairs\n"
|
||||||
|
ids-count))
|
||||||
|
|
||||||
(when inferior-lint-warnings
|
(when inferior-lint-warnings
|
||||||
(let* ((lint-checker-ids
|
(let* ((lint-checker-ids
|
||||||
(lint-checkers->lint-checker-ids
|
(lint-checkers->lint-checker-ids
|
||||||
|
|
@ -1592,26 +1612,6 @@
|
||||||
guix-revision-id
|
guix-revision-id
|
||||||
inferior-system-tests))
|
inferior-system-tests))
|
||||||
|
|
||||||
(let* ((package-derivation-ids
|
|
||||||
(with-time-logging "inferior-data->package-derivation-ids"
|
|
||||||
(inferior-data->package-derivation-ids
|
|
||||||
conn
|
|
||||||
inf
|
|
||||||
package-ids
|
|
||||||
inferior-packages-system-and-target-to-derivations-alist)))
|
|
||||||
(ids-count
|
|
||||||
(length package-derivation-ids)))
|
|
||||||
(chunk-for-each! (lambda (package-derivation-ids-chunk)
|
|
||||||
(insert-guix-revision-package-derivations
|
|
||||||
conn
|
|
||||||
guix-revision-id
|
|
||||||
package-derivation-ids-chunk))
|
|
||||||
2000
|
|
||||||
package-derivation-ids)
|
|
||||||
(simple-format
|
|
||||||
#t "Successfully loaded ~A package/derivation pairs\n"
|
|
||||||
ids-count))
|
|
||||||
|
|
||||||
(with-time-logging
|
(with-time-logging
|
||||||
"insert-guix-revision-package-derivation-distribution-counts"
|
"insert-guix-revision-package-derivation-distribution-counts"
|
||||||
(insert-guix-revision-package-derivation-distribution-counts
|
(insert-guix-revision-package-derivation-distribution-counts
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue