diff --git a/src/parse/bin.rs b/src/parse/bin.rs index b4b8c78..6baf592 100644 --- a/src/parse/bin.rs +++ b/src/parse/bin.rs @@ -41,7 +41,7 @@ pub(super) fn parse_bin(it: &mut rfc822::Map) -> Result { Some(super::pkg::File { name: it.remove_value("Filename").one_line_req()?.to_string(), size: it.remove_value("Size").one_line_req()?.parse()?, - md5: it.remove_value("MD5sum").one_line_req()?.to_string(), + md5: it.remove_value("MD5sum").one_line_owned()?, sha1: it.remove_value("SHA1").one_line_req()?.to_string(), sha256: it.remove_value("SHA256").one_line_req()?.to_string(), sha512: String::new(), diff --git a/src/parse/pkg.rs b/src/parse/pkg.rs index 9f3a2f7..d2a6b26 100644 --- a/src/parse/pkg.rs +++ b/src/parse/pkg.rs @@ -44,7 +44,7 @@ pub struct Package { pub struct File { pub name: String, pub size: u64, - pub md5: String, + pub md5: Option, pub sha1: String, pub sha256: String, pub sha512: String,