Re: [maintainer-tools PATCH] qf: Handle unused patches on sub-directories.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 26, 2017 at 04:52:21PM -0700, Rodrigo Vivi wrote:
> Most of internal patches are nowadays organized in
> quilt subdirectories, but qf was never updated to check
> for unused patches there.
> 
> Cc: Paulo Zanoni <paulo.r.zanoni@xxxxxxxxx>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@xxxxxxxxx>

lgtm, Ack. Maybe go with ** in case we start nesting them deeper.
-Daniel

> ---
>  qf | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/qf b/qf
> index 0c9d28edb3f0..cafbdc44e1bc 100755
> --- a/qf
> +++ b/qf
> @@ -300,7 +300,7 @@ function qf_clean_patches
>  	cd_toplevel
>  	repo_check 0
>  
> -	for patch in patches/*.patch ; do
> +	for patch in patches/{*/,/}*.patch ; do
>  		if grep "^${patch##patches/}$" patches/series &> /dev/null ; then
>  			continue
>  		fi
> @@ -486,7 +486,7 @@ function qf_list_unused_patches
>  	cd_toplevel
>  	repo_check 1
>  
> -	for patch in patches/*.patch ; do
> +	for patch in patches/{*/,/}*.patch ; do
>  		if ! grep "^${patch#patches/}$" patches/series > /dev/null ; then
>  			if [[ "$1" != --purge ]] ; then
>  				echo $patch
> -- 
> 2.13.5
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux