diff options
author | Erich Eckner <git@eckner.net> | 2018-03-05 11:49:50 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-03-05 11:49:50 +0100 |
commit | 148d6bbbdee8316cf1ea642ce8615e7c534f6019 (patch) | |
tree | 4a2fbca7d366253039d88aa3249989b9ecab2737 /lib | |
parent | 5a5ef4ff52a57d60fed6f0f13e939f1c0103cf34 (diff) | |
download | builder-148d6bbbdee8316cf1ea642ce8615e7c534f6019.tar.xz |
lib/common-functions: PKGBUILD is r/o, so pkgver() won't change the version :-/
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/common-functions | 4 |
1 files changed, 4 insertions, 0 deletions
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 |