1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-10-31 15:45:03 -04:00

checkupdates: show error when fakeroot is missing

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Evangelos Foutras 2014-12-19 20:03:22 +02:00 committed by Allan McRae
parent 863cfb5808
commit c9ca363431

View File

@ -21,6 +21,9 @@
declare -r myname='checkupdates'
declare -r myver='@PACKAGE_VERSION@'
m4_include(../scripts/library/output_format.sh)
m4_include(../scripts/library/term_colors.sh)
if (( $# > 0 )); then
echo "${myname} (pacman) v${myver}"
echo
@ -32,6 +35,11 @@ if (( $# > 0 )); then
exit 0
fi
if ! type -P fakeroot >/dev/null; then
error 'Cannot find the fakeroot binary.'
exit 1
fi
if [[ -z $CHECKUPDATES_DB ]]; then
CHECKUPDATES_DB="${TMPDIR:-/tmp}/checkup-db-${USER}/"
fi