From 5e5830b5d9a921328c7c51479273643e66222655 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 25 Jul 2018 08:23:43 +0200 Subject: 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 --- lib/common-functions | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/common-functions') 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 -- cgit v1.2.3-70-g09d2