index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | contrib/updpkgsums.sh.in | 4 |
diff --git a/contrib/updpkgsums.sh.in b/contrib/updpkgsums.sh.in index a40845b6..b0d2d69e 100644 --- a/contrib/updpkgsums.sh.in +++ b/contrib/updpkgsums.sh.in @@ -86,7 +86,7 @@ newbuildfile=$(mktemp --tmpdir updpkgsums.XXXXXX) # $newbuildfile as garbage in $TMPDIR. This fails silently if the replacement # succeeds. trap "rm -rf '$BUILDDIR' '$newbuildfile'" EXIT -newsums=$(makepkg -g -p "$buildfile") && +newsums=$(makepkg -g -p "$buildfile") || die 'Failed to generate new checksums' awk -v newsums="$newsums" ' /^[[:blank:]]*(md|sha)[[:digit:]]+sums(_[^=]+)?=/,/\)[[:blank:]]*(#.*)?$/ { if (!w) { @@ -98,7 +98,7 @@ awk -v newsums="$newsums" ' 1 END { if (!w) print newsums } -' "$buildfile" > "$newbuildfile" +' "$buildfile" > "$newbuildfile" || die 'Failed to write new PKGBUILD' # Replace the original buildfile. if ! mv -- "$newbuildfile" "$buildfile"; then |