Store license information for packages
And display this on the package page. This uses a couple of new tables, and an additional field in the package_metadata table. Currently, the order of the licenses in the package definition isn't stored, as I'm not sure the order in the list is significant.
This commit is contained in:
parent
28c2d46081
commit
16799a34a9
12 changed files with 393 additions and 16 deletions
|
|
@ -17,6 +17,7 @@
|
|||
#:use-module (guix-data-service model guix-revision)
|
||||
#:use-module (guix-data-service model package-derivation)
|
||||
#:use-module (guix-data-service model guix-revision-package-derivation)
|
||||
#:use-module (guix-data-service model license-set)
|
||||
#:use-module (guix-data-service model package-metadata)
|
||||
#:use-module (guix-data-service model derivation)
|
||||
#:export (process-next-load-new-guix-revision-job
|
||||
|
|
@ -184,10 +185,16 @@
|
|||
(lambda ()
|
||||
(deduplicate-inferior-packages
|
||||
(inferior-packages inf)))))
|
||||
(package-license-set-ids
|
||||
(log-time "fetching inferior package license metadata"
|
||||
(lambda ()
|
||||
(inferior-packages->license-set-ids conn inf
|
||||
packages))))
|
||||
(packages-metadata-ids
|
||||
(log-time "fetching inferior package metadata"
|
||||
(lambda ()
|
||||
(inferior-packages->package-metadata-ids conn packages))))
|
||||
(inferior-packages->package-metadata-ids
|
||||
conn packages package-license-set-ids))))
|
||||
(package-ids
|
||||
(log-time "getting package-ids"
|
||||
(lambda ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue