summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-08-21 10:42:10 -0400
committerAllan McRae <allan@archlinux.org>2014-09-30 12:56:57 +1000
commitcb9489119e15425eabdaa1e82a82c8879720b2a5 (patch)
tree9a766e4dd67137ae45f3aafc72ced3accbadecdf
parent235562a85e25492f3ea258f71904d8753941e0c5 (diff)
makepkg: abort if we can't add install/changelog to package
-rw-r--r--scripts/makepkg.sh.in5
1 files changed, 4 insertions, 1 deletions
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