From 68d8bfa0b5c15e1ddbc7f81cd23bf464674413f9 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Thu, 5 Aug 2010 21:01:32 +1000 Subject: 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 --- scripts/makepkg.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 7ff4289b..a28cfa75 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -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 -- cgit v1.2.3-70-g09d2