From 148d6bbbdee8316cf1ea642ce8615e7c534f6019 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 5 Mar 2018 11:49:50 +0100 Subject: lib/common-functions: PKGBUILD is r/o, so pkgver() won't change the version :-/ --- bin/build-packages | 4 ++-- lib/common-functions | 4 ++++ 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 -- cgit v1.2.3-70-g09d2