@@ -52,9 +52,9 @@ pub struct Metadata {
5252 /// An SPDX expression indicating the license covering the distribution.
5353 #[ cfg_attr( feature = "serde" , serde( default ) ) ]
5454 pub license_expression : Option < String > ,
55- /// The path to a file containing the text of the license covering the distribution.
55+ /// Paths to files containing the text of the licenses covering the distribution.
5656 #[ cfg_attr( feature = "serde" , serde( default ) ) ]
57- pub license_file : Option < String > ,
57+ pub license_files : Vec < String > ,
5858 /// Each entry is a string giving a single classification value for the distribution.
5959 #[ cfg_attr( feature = "serde" , serde( default ) ) ]
6060 pub classifiers : Vec < String > ,
@@ -159,7 +159,7 @@ impl Metadata {
159159 let author_email = get_first_value ( "Author-email" ) ;
160160 let license = get_first_value ( "License" ) ;
161161 let license_expression = get_first_value ( "License-Expression" ) ;
162- let license_file = get_first_value ( "License-File" ) ;
162+ let license_files = get_all_values ( "License-File" ) ;
163163 let classifiers = get_all_values ( "Classifier" ) ;
164164 let requires_dist = get_all_values ( "Requires-Dist" ) ;
165165 let provides_dist = get_all_values ( "Provides-Dist" ) ;
@@ -187,7 +187,7 @@ impl Metadata {
187187 author_email,
188188 license,
189189 license_expression,
190- license_file ,
190+ license_files ,
191191 classifiers,
192192 requires_dist,
193193 provides_dist,
0 commit comments