diff options
author | Allan McRae <allan@archlinux.org> | 2010-08-05 21:01:32 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-08-23 21:50:46 -0500 |
commit | 68d8bfa0b5c15e1ddbc7f81cd23bf464674413f9 (patch) | |
tree | b9deba6ba7fe0f208eef0eb29f62d15bcfb8d004 /scripts | |
parent | f27fed14b16dc85da104ae4c463ba6040d7e4d64 (diff) | |
download | 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.in | 4 |
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 |