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
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -146,7 +146,7 @@ name (e.g. \"github.com/golang/protobuf/proto\")."
 | 
				
			||||||
         ;; Extract the text contained in a h2 child node of any
 | 
					         ;; Extract the text contained in a h2 child node of any
 | 
				
			||||||
         ;; element marked with a "License" class attribute.
 | 
					         ;; element marked with a "License" class attribute.
 | 
				
			||||||
         (select (sxpath `(// (* (@ (equal? (class "License"))))
 | 
					         (select (sxpath `(// (* (@ (equal? (class "License"))))
 | 
				
			||||||
                              h2 // *text*))))
 | 
					                              h2 // div // *text*))))
 | 
				
			||||||
    (select (html->sxml body #:strict? #t))))
 | 
					    (select (html->sxml body #:strict? #t))))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define (sxml->texi sxml-node)
 | 
					(define (sxml->texi sxml-node)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue