diff --git a/iso/builder/build-hpl.sh b/iso/builder/build-hpl.sh index 6a1d535..d93f0a3 100755 --- a/iso/builder/build-hpl.sh +++ b/iso/builder/build-hpl.sh @@ -158,11 +158,11 @@ lookup_deb() { /^Filename: / { file=$2 } /^SHA256: / { sha=$2 } /^$/ { - if (cur == pkg) { print file " " sha; exit } + if (cur == pkg) { print file " " sha; found=1; exit } cur=""; file=""; sha="" } END { - if (cur == pkg) print file " " sha + if (!found && cur == pkg) print file " " sha }' }