mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58: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:
parent
68701a98af
commit
ea216d3f5a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user