[dpdk-stable] [PATCH stable-scripts] Fix regex to select commit via Fixed line

luca.boccassi at gmail.com luca.boccassi at gmail.com
Fri Feb 14 12:48:40 CET 2020


From: Luca Boccassi <luca.boccassi at microsoft.com>

The regex was not matching very old DPDK versions with letters in
it, like 1.3.0r0.

Signed-off-by: Luca Boccassi <luca.boccassi at microsoft.com>
---
I had one problem, so I used a regex to fix it.
Now I have two problems.

 1-import | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/1-import b/1-import
index 51e4413..b49e228 100755
--- a/1-import
+++ b/1-import
@@ -46,7 +46,7 @@ then
 			echo $line >> $tmp_list
 		# Is the patch fixing a commit that was part of this stable release?
 		# If so select it
-		elif verlte `echo $line | sed "s/.*(\([0-9][0-9].[0-9][0-9]\).*)/\1/"` $stable_release
+		elif verlte `echo $line | sed -E "s/.*\(([0-9]+.[0-9]+(.\w+)*)(\s\(.*\))*\)/\1/"` $stable_release
 		then
 			echo $line >> $tmp_list
 		# Was the commit (which might be only in a subsequent release)
-- 
2.20.1



More information about the stable mailing list