Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-05 11:49:50 +0100
committerErich Eckner <git@eckner.net>2018-03-05 11:49:50 +0100
commit148d6bbbdee8316cf1ea642ce8615e7c534f6019 (patch)
tree4a2fbca7d366253039d88aa3249989b9ecab2737
parent5a5ef4ff52a57d60fed6f0f13e939f1c0103cf34 (diff)
lib/common-functions: PKGBUILD is r/o, so pkgver() won't change the version :-/
-rwxr-xr-xbin/build-packages4
-rwxr-xr-xlib/common-functions4
2 files changed, 6 insertions, 2 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 24c5453..0f0c841 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -352,9 +352,9 @@ while [ "${count}" -ne 0 ]; do
if echo "${straw}" | \
grep -qF ':without_check:'; then
- innerParameters='--nocheck --holdver'
+ innerParameters='--nocheck'
else
- innerParameters='--holdver'
+ innerParameters=''
fi
if echo "${straw}" | \
diff --git a/lib/common-functions b/lib/common-functions
index ba434ad..0779203 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -934,6 +934,10 @@ extract_source_directory() {
# shellcheck disable=SC2016
sed -i '/^\$Id\$$/d' "${output}/PKGBUILD"
+ # we don't want write permissions on the PKGBUILD - otherwise pkgver()
+ # will change the version! (**HACK**)
+ chmod -w "${output}/PKGBUILD"
+
}
# find_dependencies_on_build_list $package $git_revision $mod_git_revision $repository