diff options
author | Erich Eckner <git@eckner.net> | 2019-01-18 09:03:37 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-01-18 09:03:37 +0100 |
commit | d13aac55d8128d20d7981a134ee72c69f9efb5e9 (patch) | |
tree | fc469248f8af395744becda5ce80714f1a40a74f | |
parent | 3761772845004be9100bb73e840be67dfde620f4 (diff) | |
download | builder-d13aac55d8128d20d7981a134ee72c69f9efb5e9.tar.xz |
lib/common-functions: chmod +w PKGBUILD temporarily when applying trunk patch
-rwxr-xr-x | lib/common-functions | 2 |
1 files changed, 2 insertions, 0 deletions
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" } |