Add filename to warning for files without hash in the manifest

This commit is contained in:
Richard Kuhnt
2018-07-13 17:11:26 +02:00
parent c67bcb1cce
commit 4c9beee8f2
+1 -1
View File
@@ -445,7 +445,7 @@ function hash_for_url($manifest, $url, $arch) {
function check_hash($file, $hash, $app_name) {
$file = fullpath $file
if(!$hash) {
warn "Warning: No hash in manifest. SHA256 is:`n $(compute_hash $file) 'sha256')"
warn "Warning: No hash in manifest. SHA256 for '$(fname $file)' is:`n $(compute_hash $file 'sha256')"
return $true, $null
}