gnarlin / osget

Operating system image (.iso files usually) downloader which acts more like a package manager
GNU General Public License v3.0
41 stars 6 forks source link

Fix SHA512 check (broken during last commit) #4

Closed dsg22 closed 2 years ago

dsg22 commented 2 years ago

My commit earlier this morning (5b3fc452247124ac16fb24f64f86dbf83730e2e2) broke SHA512 checking. It's checking the defined SHA512 hash with the file's SHA1 hash, which will of course never match.

Luckily this is not a security issue as it can only ever result in a valid file being rejected, not the other way around.

Fix the check to actually compare against the file's SHA512 checksum.