Remove hardcoding of builtin:download

As this was causing problems with builtin:git-download.
This commit is contained in:
Christopher Baines 2023-11-16 12:20:55 +00:00
parent de211ef5ea
commit da2a405e8b

View file

@ -640,9 +640,8 @@
(tbody (tbody
(tr (tr
(td "Builder") (td "Builder")
(td ,(if (string=? "builtin:download" (td ,(if (string-prefix? "builtin:" builder)
builder) builder
"builtin:download"
`(a (@ (href ,builder)) `(a (@ (href ,builder))
,(display-file-in-store-item builder))))) ,(display-file-in-store-item builder)))))
(tr (tr
@ -852,9 +851,8 @@
(@ (class "col-md-10") (@ (class "col-md-10")
(style "font-family: monospace;")) (style "font-family: monospace;"))
(span (@ (style "margin-left: 1.5em;")) (span (@ (style "margin-left: 1.5em;"))
,@(if (string=? "builtin:download" ,@(if (string-prefix? "builtin:" builder)
builder) (list builder)
'("builtin:download")
`("\"" `("\""
(a (@ (href ,builder)) (a (@ (href ,builder))
,(display-file-in-store-item-oneline builder)) ,(display-file-in-store-item-oneline builder))