Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/parse/bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub(super) fn parse_bin(it: &mut rfc822::Map) -> Result<Binary, Error> {
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(),
Expand Down
2 changes: 1 addition & 1 deletion src/parse/pkg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub struct Package {
pub struct File {
pub name: String,
pub size: u64,
pub md5: String,
pub md5: Option<String>,
pub sha1: String,
pub sha256: String,
pub sha512: String,
Expand Down