patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH stable-scripts] Fix regex to select commit via Fixed line
@ 2020-02-14 11:48 luca.boccassi
  2020-02-14 12:47 ` Luca Boccassi
  0 siblings, 1 reply; 3+ messages in thread
From: luca.boccassi @ 2020-02-14 11:48 UTC (permalink / raw)
  To: stable; +Cc: ktraynor

From: Luca Boccassi <luca.boccassi@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@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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-14 12:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-14 11:48 [dpdk-stable] [PATCH stable-scripts] Fix regex to select commit via Fixed line luca.boccassi
2020-02-14 12:47 ` Luca Boccassi
2020-02-14 12:56   ` David Marchand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).