@@ -52,9 +52,9 @@ pub struct Metadata {
52
52
/// An SPDX expression indicating the license covering the distribution.
53
53
#[ cfg_attr( feature = "serde" , serde( default ) ) ]
54
54
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.
56
56
#[ cfg_attr( feature = "serde" , serde( default ) ) ]
57
- pub license_file : Option < String > ,
57
+ pub license_files : Vec < String > ,
58
58
/// Each entry is a string giving a single classification value for the distribution.
59
59
#[ cfg_attr( feature = "serde" , serde( default ) ) ]
60
60
pub classifiers : Vec < String > ,
@@ -159,7 +159,7 @@ impl Metadata {
159
159
let author_email = get_first_value ( "Author-email" ) ;
160
160
let license = get_first_value ( "License" ) ;
161
161
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" ) ;
163
163
let classifiers = get_all_values ( "Classifier" ) ;
164
164
let requires_dist = get_all_values ( "Requires-Dist" ) ;
165
165
let provides_dist = get_all_values ( "Provides-Dist" ) ;
@@ -187,7 +187,7 @@ impl Metadata {
187
187
author_email,
188
188
license,
189
189
license_expression,
190
- license_file ,
190
+ license_files ,
191
191
classifiers,
192
192
requires_dist,
193
193
provides_dist,
0 commit comments