mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
makepkg: abort if we can't add install/changelog to package
This commit is contained in:
parent
235562a85e
commit
cb9489119e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user