summaryrefslogtreecommitdiff
path: root/lib/common-functions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common-functions')
-rwxr-xr-xlib/common-functions2
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"
}