import: go: Fix parsing of pkg.go.dev licenses after site update.
* guix/import/go.scm (go-package-licenses): Find license names in 'h2 // div // *text*' elements rather than 'h2 // *text*' elements. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
parent
2aa65869ba
commit
59d20bcfcc
@ -146,7 +146,7 @@ name (e.g. \"github.com/golang/protobuf/proto\")."
|
||||
;; Extract the text contained in a h2 child node of any
|
||||
;; element marked with a "License" class attribute.
|
||||
(select (sxpath `(// (* (@ (equal? (class "License"))))
|
||||
h2 // *text*))))
|
||||
h2 // div // *text*))))
|
||||
(select (html->sxml body #:strict? #t))))
|
||||
|
||||
(define (sxml->texi sxml-node)
|
||||
|
Loading…
x
Reference in New Issue
Block a user