From d13aac55d8128d20d7981a134ee72c69f9efb5e9 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 18 Jan 2019 09:03:37 +0100 Subject: lib/common-functions: chmod +w PKGBUILD temporarily when applying trunk patch --- lib/common-functions | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/common-functions') diff --git a/lib/common-functions b/lib/common-functions index dba56b7..772d889 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -906,9 +906,11 @@ apply_trunk_patch() { # no diff_source_dir => no action return fi + chmod +w "${source_dir}/PKGBUILD" diff -u3 "${diff_source_dir}/PKGBUILD" "${diff_source_dir}/../../trunk/PKGBUILD" \ | sed ' 1,2 s#^\(\(+++\|---\)\s\+\)\S\+/\(PKGBUILD\s.*\)$#\1\3# ' \ | patch -p0 "${source_dir}/PKGBUILD" + chmod -w "${source_dir}/PKGBUILD" } -- cgit v1.2.3-54-g00ecf