index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | scripts/pacman-optimize.sh.in | 5 |
diff --git a/scripts/pacman-optimize.sh.in b/scripts/pacman-optimize.sh.in index 83c56a77..2d7fa9bf 100644 --- a/scripts/pacman-optimize.sh.in +++ b/scripts/pacman-optimize.sh.in @@ -86,6 +86,11 @@ if [ "$1" != "" ]; then dbroot="$1" fi +# make sure diff is installed +if ! type diff >/dev/null 2>&1; then + die "$(gettext "diff tool was not found, please install diffutils.")" +fi + # make sure pacman isn't running if [ -f "$lockfile" ]; then die "$(gettext "Pacman lock file was found. Cannot run while pacman is running.")" |