From 509cb31ae54326d3f8e0a5d9c42f5ef71aa7651b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 5 Mar 2018 19:43:07 +0100 Subject: lib/common-functions: remove pkgver() from PKGBUILD, so we do not accidentally update $pkgver --- lib/common-functions | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/common-functions') diff --git a/lib/common-functions b/lib/common-functions index 0779203..0f75cb8 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -929,6 +929,10 @@ extract_source_directory() { "${output}/PKGBUILD" fi + # we do not want to update pkgver, so we just undefine it + printf 'unset -f pkgver\n' >> \ + "${output}/PKGBUILD" + mangle_pkgbuild "${output}/PKGBUILD" "${sub_pkgrel}" # shellcheck disable=SC2016 -- cgit v1.2.3-70-g09d2