Skip to content

Commit

Permalink
website: packages.json: Do not emit "homepage" when it's false.
Browse files Browse the repository at this point in the history
Reported at <repology/repology-updater#218 (comment)>.

* website/apps/packages/builder.scm (packages-json-builder): Do not emit
"homepage" when it's false.
  • Loading branch information
civodul committed Aug 28, 2019
1 parent 8583462 commit a7494e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/apps/packages/builder.scm
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@
`(("source" . ,(origin->json (package-source package))))
'())
("synopsis" . ,(package-synopsis package))
("homepage" . ,(package-home-page package))
,@(if (package-home-page package)
`(("homepage" . ,(package-home-page package)))
'())
,@(match (package-location package)
((? location? location)
`(("location"
Expand Down

0 comments on commit a7494e3

Please sign in to comment.