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

Daniel Vetter daniel at ffwll.ch
Wed Sep 27 09:23:58 UTC 2017


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 at intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>

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 at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the Intel-gfx mailing list