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:
parent
f27fed14b1
commit
68d8bfa0b5
1 changed files with 2 additions and 2 deletions
|
@ -968,7 +968,7 @@ check_package() {
|
|||
local file
|
||||
for file in "${backup[@]}"; do
|
||||
if [[ ! -f $file ]]; then
|
||||
warning "$(gettext "Invalid backup entry : %s")" "$file"
|
||||
warning "$(gettext "Backup entry file not in package : %s")" "$file"
|
||||
fi
|
||||
done
|
||||
|
||||
|
@ -1229,7 +1229,7 @@ check_sanity() {
|
|||
local file
|
||||
for file in "${backup[@]}"; do
|
||||
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
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Add table
Reference in a new issue