From ea216d3f5a84814c512ab51ac37a4055b82032c3 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 27 Mar 2011 20:03:08 -0500 Subject: Clarify error message in pacman-db-upgrade Addresses FS#23451. Signed-off-by: Dan McGee --- scripts/pacman-db-upgrade.sh.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/pacman-db-upgrade.sh.in') diff --git a/scripts/pacman-db-upgrade.sh.in b/scripts/pacman-db-upgrade.sh.in index 0813acc6..17d8beb4 100644 --- a/scripts/pacman-db-upgrade.sh.in +++ b/scripts/pacman-db-upgrade.sh.in @@ -83,10 +83,14 @@ if [[ -n $1 ]]; then dbroot="$1" fi -if [[ ! -d $dbroot || ! -d $dbroot/local ]]; then +if [[ ! -d $dbroot ]]; then die "$(gettext "%s does not exist or is not a directory.")" "$dbroot" fi +if [[ ! -d $dbroot/local ]]; then + die "$(gettext "%s is not a pacman database directory.")" "$dbroot" +fi + if [[ ! -w $dbroot ]]; then die "$(gettext "You must have correct permissions to upgrade the database.")" fi -- cgit v1.2.3-24-g4f1b