From cb9489119e15425eabdaa1e82a82c8879720b2a5 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Thu, 21 Aug 2014 10:42:10 -0400 Subject: makepkg: abort if we can't add install/changelog to package --- scripts/makepkg.sh.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index af906608..67a3116f 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -2118,7 +2118,10 @@ create_package() { if [[ -n ${!orig} ]]; then msg2 "$(gettext "Adding %s file...")" "$orig" - cp "$startdir/${!orig}" "$dest" + if ! cp "$startdir/${!orig}" "$dest"; then + error "$(gettext "Failed to add %s file to package.")" "$orig" + exit 1 + fi chmod 644 "$dest" comp_files+=("$dest") fi -- cgit v1.2.3-70-g09d2