makepkg: clarify invalid backup entry errors

"Invalid backup entry" was not a particular helpful error message,
especially when it was due to the file not being in the final package.
Clarify these two messages.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2010-08-05 21:01:32 +10:00 committed by Dan McGee
parent f27fed14b1
commit 68d8bfa0b5

View file

@ -968,7 +968,7 @@ check_package() {
local file local file
for file in "${backup[@]}"; do for file in "${backup[@]}"; do
if [[ ! -f $file ]]; then if [[ ! -f $file ]]; then
warning "$(gettext "Invalid backup entry : %s")" "$file" warning "$(gettext "Backup entry file not in package : %s")" "$file"
fi fi
done done
@ -1229,7 +1229,7 @@ check_sanity() {
local file local file
for file in "${backup[@]}"; do for file in "${backup[@]}"; do
if [[ ${file:0:1} = "/" ]]; then if [[ ${file:0:1} = "/" ]]; then
error "$(gettext "Invalid backup entry : %s")" "$file" error "$(gettext "Backup entry should not contain leading slash : %s")" "$file"
return 1 return 1
fi fi
done done