Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/common-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-07-25 08:23:43 +0200
committerErich Eckner <git@eckner.net>2018-07-25 08:23:43 +0200
commit5e5830b5d9a921328c7c51479273643e66222655 (patch)
tree5965b484c1a6842cf534df0b849dc0631a430809 /lib/common-functions
parentebee7685d5d26545b4d717163d1db6daeee839a5 (diff)
lib/common-functions: extract_source_directory(): insert "\n" after upstream's and our PKGBUILD to not fail if there is no newline at the fileend
Diffstat (limited to 'lib/common-functions')
-rwxr-xr-xlib/common-functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/common-functions b/lib/common-functions
index 0cacf18..45438cd 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -468,6 +468,8 @@ extract_source_directory() {
if [ -n "${PKGBUILD}" ]; then
eval 'git -C "${repo_paths__'"${git_repo}"'}" archive "${rev}" -- "${PKGBUILD%/*}"' | \
tar -x --strip-components=3 -C "${output}"
+ printf '\n' >> \
+ "${output}/PKGBUILD"
fi
if [ -n "${PKGBUILD_mod}" ]; then
@@ -477,6 +479,8 @@ extract_source_directory() {
git -C "${repo_paths__archlinux32}" archive "${mod_rev}" -- "${PKGBUILD_mod}" | \
tar -Ox "${PKGBUILD_mod}" >> \
"${output}/PKGBUILD"
+ printf '\n' >> \
+ "${output}/PKGBUILD"
fi
# we do not want to update pkgver, so we just undefine it