[pacman-dev] [PATCH] Fix vercmp and add additional tests

Xavier shiningxc at gmail.com
Fri Jul 25 04:59:56 EDT 2008


On Wed, Jul 23, 2008 at 6:48 AM, Dan McGee <dan at archlinux.org> wrote:
>
> +if [ ! -x "$bin" ]; then
> +       echo "vercmp binary ($bin) could not be located"
> +       exit 1
> +fi
> +
> +echo "Beginning vercmp tests"
> +

This does not work when vercmptest is run without arguments and $bin
defaults to vercmp.
What about doing like in makepkg instead :
if [ ! $(type -p "$bin") ]; then




More information about the pacman-dev mailing list