summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2010-08-05 13:01:32 +0200
committerDan McGee <dan@archlinux.org>2010-08-24 04:50:46 +0200
commit68d8bfa0b5c15e1ddbc7f81cd23bf464674413f9 (patch)
treeb9deba6ba7fe0f208eef0eb29f62d15bcfb8d004 /scripts
parentf27fed14b16dc85da104ae4c463ba6040d7e4d64 (diff)
downloadpacman-68d8bfa0b5c15e1ddbc7f81cd23bf464674413f9.tar.gz
pacman-68d8bfa0b5c15e1ddbc7f81cd23bf464674413f9.tar.xz
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in4
1 files 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