[pacman-dev] [ABS PATCH] Allow syncing the ABS tree using tarballs

Allan McRae allan at archlinux.org
Sun Oct 26 11:52:08 EDT 2008


Dieter Plaetinck wrote:
> +    if [ ! "$(type -p rsync)" ]; then
> +        error "missing wget download utility.  Install wget."
> +        exit $_E_MISSING_PROGRAM
> +    fi
>
> You probably meant 'type -p wget' here?

Good catch!  A bit too much copy/paste here...

> You can also just check the exit status of type btw, instead of 
> capturing and comparing its output:.
> if ! type -p wget >/dev/null; then ....

The current way is used elsewhere in the abs code and given this makes 
little difference I will stick with it.

Thanks,
Allan





More information about the pacman-dev mailing list