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

Rodrigo Vivi rodrigo.vivi at intel.com
Tue Sep 26 23:52:21 UTC 2017


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>
---
 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



More information about the Intel-gfx mailing list