diff options
author | Erich Eckner <git@eckner.net> | 2018-07-25 08:23:43 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-07-25 08:23:43 +0200 |
commit | 5e5830b5d9a921328c7c51479273643e66222655 (patch) | |
tree | 5965b484c1a6842cf534df0b849dc0631a430809 | |
parent | ebee7685d5d26545b4d717163d1db6daeee839a5 (diff) | |
download | builder-5e5830b5d9a921328c7c51479273643e66222655.tar.xz |
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
-rwxr-xr-x | lib/common-functions | 4 |
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 |