[pacman-dev] [PATCH] makepkg: use type -p's return value for PATH checks

Cedric Staniewski cedric at gmx.ca
Thu May 27 10:57:27 EDT 2010


On 27.05.2010 16:46, Andres P wrote:
> @@ -1921,7 +1921,7 @@ if (( NODEPS || ( (NOBUILD || REPKG) && !DEP_BIN ) )); then
>  	if (( NODEPS || ( REPKG && PKGFUNC ) )); then
>  		warning "$(gettext "Skipping dependency checks.")"
>  	fi
> -elif [ $(type -p "${PACMAN%% *}") ]; then
> +elif type -p "${PACMAN%% >/dev/null *}"; then
>  	if (( RMDEPS )); then
>  		original_pkglist=($(run_pacman -Qq | sort))    # required by remove_dep
>  	fi

This line needs to be fixed before applying it.


More information about the pacman-dev mailing list