Skip to content

Commit

Permalink
fix: use lowercased md5 on packages
Browse files Browse the repository at this point in the history
  • Loading branch information
tale committed Feb 15, 2022
1 parent 78a3672 commit 582c2ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/packages.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface IPackage extends IControl {
/**
* Optional list of MD5 file hashes.
*
* Represents the `MD5Sum` key on the Release contents.
* Represents the `MD5sum` key on the Release contents.
*
* For the technical specification, see:
* https://wiki.debian.org/DebianRepository/Format#Size.2C_MD5sum.2C_SHA1.2C_SHA256.2C_SHA512
Expand Down
2 changes: 1 addition & 1 deletion src/packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Package extends Control implements IPackage {
this.filename = this.raw.get('Filename')!.trim()
this.size = parseFloat(this.raw.get('Size')!.trim())

this.md5 = this.raw.get('MD5Sum')?.trim()
this.md5 = this.raw.get('MD5sum')?.trim()
this.sha1 = this.raw.get('SHA1')?.trim()
this.sha256 = this.raw.get('SHA256')?.trim()
this.sha512 = this.raw.get('SHA512')?.trim()
Expand Down

0 comments on commit 582c2ed

Please sign in to comment.