Package: devscripts
Version: 2.22.1ubuntu2
Master branch has identical code.

The 'find' utility provides the '-regex' primary test. Instead of cloning
and creating a subshell for grep, use that. It supports multiple regex
syntaxes but the default one should be okay.

Patch provided.

Tag: patch
--- list-unreleased.sh	2022-06-11 14:28:18.476849697 +0500
+++ list-unreleased_fix	2022-06-11 14:30:19.684504068 +0500
@@ -40,15 +40,15 @@
 
 [ "$PATHS" ] || PATHS=.
 
-vcs_dirs='(\.(svn|hg|git|bzr)|_darcs|_MTN|CVS)'
+vcs_dirs='\(\.\(svn\|hg\|git\|bzr\)\|_darcs\|_MTN\|CVS\)'
 get_list() {
 	local path="$1"
 
 	for dir in $(
 		if [ "$RECURSE" ]; then
-			find "$path" -type d | grep -vE "$vcs_dirs"
+			find "$path" -type d ! -regex "$vcs_dirs"
 		else
-			find "$path" -maxdepth 1 -type d | grep -vE "$vcs_dirs"
+			find "$path" -maxdepth 1 -type d ! -regex "$vcs_dirs"
 		fi
 	); do
 		changelog="$dir/debian/changelog"

Reply via email to