summaryrefslogtreecommitdiff
path: root/lib/common-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-05 19:43:07 +0100
committerErich Eckner <git@eckner.net>2018-03-05 19:43:07 +0100
commit509cb31ae54326d3f8e0a5d9c42f5ef71aa7651b (patch)
tree8f7c5eda0a348dd3c75c11a1c5bf1894a7ccb5c4 /lib/common-functions
parentcca041f6592ac47a36937cbdf48f943c86c2d217 (diff)
downloadbuilder-509cb31ae54326d3f8e0a5d9c42f5ef71aa7651b.tar.xz
lib/common-functions: remove pkgver() from PKGBUILD, so we do not accidentally update $pkgver
Diffstat (limited to 'lib/common-functions')
-rwxr-xr-xlib/common-functions4
1 files changed, 4 insertions, 0 deletions
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