summaryrefslogtreecommitdiff
path: root/guix/import
diff options
context:
space:
mode:
authorSarah Morgensen via Guix-patches via <guix-patches@gnu.org>2021-07-15 18:41:49 -0700
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-07-17 22:13:39 -0400
commit59d20bcfcc92e51fb451001ed52b21f6daf8013c (patch)
treeeec874a50152bc029d27da230c0853e8d1a9306c /guix/import
parent2aa65869bacd901abfa93c98ce39afbd446f3ed2 (diff)
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>
Diffstat (limited to 'guix/import')
-rw-r--r--guix/import/go.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/import/go.scm b/guix/import/go.scm
index d8f838f635..f6a68d62bb 100644
--- a/guix/import/go.scm
+++ b/guix/import/go.scm
@@ -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)