[pacman-dev] [PATCH] makepkg: Always resolve dependencies When --syncdeps is explicitly passed

Allan McRae allan at archlinux.org
Mon May 17 07:29:30 EDT 2010


On 11/05/10 05:30, Nezmer wrote:
> This change makes sense for me in general. The use-case I ran into was
> needing the dependencies when repackaging.
>
> Signed-off-by: Nezmer<git at nezmer.info>
> ---
>   scripts/makepkg.sh.in |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
> index a2db90b..34261b5 100644
> --- a/scripts/makepkg.sh.in
> +++ b/scripts/makepkg.sh.in
> @@ -1867,7 +1867,7 @@ if (( SOURCEONLY )); then
>   fi
>
>   # fix flyspray bug #5973
> -if (( NODEPS || NOBUILD || REPKG )); then
> +if (( (NODEPS || NOBUILD || REPKG)&&  ! DEP_BIN )); then
>   	# no warning message needed for nobuild, repkg
>   	if (( NODEPS )); then
>   		warning "$(gettext "Skipping dependency checks.")"


I think I would prefer something like:

if (( NODEPS || ( ( NOBUILD || REPKG ) && !DEP_BIN ) )); then

For NODEPS, we can safely skip installing deps if someone uses 
"--nodeps --syncdeps" because that person is an idiot!

I think REPKG should only installed deps when explicitly asked as a fair 
portion of the time installing deps will be unneeded.

Finally, I am not sure whether "--nobuild --syncdeps" is an OK 
combination.  I think it is.

Sound fine?

Allan


More information about the pacman-dev mailing list