updpkgsums: update to recognize arch-specific sources

This change reveals a bootstrapping bug -- since we call the bare
"makepkg" and rely on PATH lookup, we might not have a makepkg which
can generate architecture-specific checksums.
This commit is contained in:
Dave Reisner 2014-08-09 18:02:33 -04:00 committed by Allan McRae
parent 963f7fe02f
commit 235562a85e
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ fi
trap "rm -rf '$BUILDDIR'" EXIT
newsums=$(makepkg -g -p "$buildfile") && rm -f "$buildfile" &&
exec awk -v newsums="$newsums" '
/^[[:blank:]]*(md|sha)[[:digit:]]+sums=/,/\)[[:blank:]]*(#.*)?$/ {
/^[[:blank:]]*(md|sha)[[:digit:]]+sums(_[^=]+)?=/,/\)[[:blank:]]*(#.*)?$/ {
if (!w) {
print newsums
w++