guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: import: go: Fix parsing of pkg.go.dev licenses af


From: guix-commits
Subject: branch master updated: import: go: Fix parsing of pkg.go.dev licenses after site update.
Date: Sat, 17 Jul 2021 22:14:23 -0400

This is an automated email from the git hooks/post-receive script.

apteryx pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 59d20bc  import: go: Fix parsing of pkg.go.dev licenses after site 
update.
59d20bc is described below

commit 59d20bcfcc92e51fb451001ed52b21f6daf8013c
Author: Sarah Morgensen via Guix-patches via <guix-patches@gnu.org>
AuthorDate: Thu Jul 15 18:41:49 2021 -0700

    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>
---
 guix/import/go.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/import/go.scm b/guix/import/go.scm
index d8f838f..f6a68d6 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]