diff options
Diffstat (limited to 'abuild.in')
-rw-r--r-- | abuild.in | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -2107,9 +2107,13 @@ checksum() { local s files [ -z "$source" ] && [ -n "${md5sums}${sha256sums}${sha512sums}" ] \ && msg "Removing checksums from APKBUILD" - sed -i -e '/^md5sums="/,/"\$/d; /^md5sums=''/,/''\$/d' "$APKBUILD" - sed -i -e '/^sha512sums="/,/"\$/d; /^sha512sums=''/,/''\$/d' "$APKBUILD" - sed -i -e '/^sha256sums="/,/"\$/d; /^sha256sums=''/,/''\$/d' "$APKBUILD" + sed -E -i -e '/^(md5|sha[0-9]+)sums=".*[^"]$/,/"$/d' \ + -e '/^(md5|sha[0-9]+)sums=".*"$/d' \ + \ + -e "/^(md5|sha[0-9]+)sums='.*[^']\$/,/'\$/d" \ + -e "/^(md5|sha[0-9]+)sums='.*'\$/d" \ + APKBUILD + [ -z "$source" ] && return 0 fetch for s in $source; do |