[Pkg-xen-devel] [PATCH 02/19] d/shuffle-binaries: Remove useless extra argument being passed in

Hans van Kranenburg hans at knorrie.org
Fri Dec 4 20:14:32 GMT 2020


On 9/19/20 8:24 AM, Elliott Mitchell wrote:
> This doesn't do anything.  Really it is almost a bug the script /doesn't/
> complain.

Hah, yes, good catch. The second argument is never used inside
shuffle-binaries.

In shuffle-binaries, I see "version=$1; shift". Ian, is the shift and
the not-used but passed $(flavour) a left-over from some intermediate
steps while doing the WHRAAA reworking of the packaging?

I guess we could add dropping that "; shift" in this same change,
because it only confuses the reader into thinking that there will be
some code later on using $1 again?

> Signed-off-by: Elliott Mitchell <ehem+debian at m5p.com>
> ---
>  debian/rules | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/debian/rules b/debian/rules
> index 741676e617..c7dc55ad03 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -271,7 +271,7 @@ xenstore_rm = $(addprefix debian/xen-utils-common/,		\
>  		))
>  
>  override_dh_install:
> -	debian/shuffle-binaries $(upstream_version) $(flavour)
> +	debian/shuffle-binaries $(upstream_version)
>  	:
>  	debian/shuffle-boot-files $(upstream_version) $(flavour)
>  	:
> 

Thanks,
Hans



More information about the Pkg-xen-devel mailing list