1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 00:08:50 -05:00

Clarify error message in pacman-db-upgrade

Addresses FS#23451.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2011-03-27 20:03:08 -05:00
parent 68701a98af
commit ea216d3f5a

View File

@ -83,10 +83,14 @@ if [[ -n $1 ]]; then
dbroot="$1" dbroot="$1"
fi fi
if [[ ! -d $dbroot || ! -d $dbroot/local ]]; then if [[ ! -d $dbroot ]]; then
die "$(gettext "%s does not exist or is not a directory.")" "$dbroot" die "$(gettext "%s does not exist or is not a directory.")" "$dbroot"
fi fi
if [[ ! -d $dbroot/local ]]; then
die "$(gettext "%s is not a pacman database directory.")" "$dbroot"
fi
if [[ ! -w $dbroot ]]; then if [[ ! -w $dbroot ]]; then
die "$(gettext "You must have correct permissions to upgrade the database.")" die "$(gettext "You must have correct permissions to upgrade the database.")"
fi fi