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

Luca Boccassi luca.boccassi at gmail.com
Fri Feb 14 13:47:19 CET 2020


David pointed out that sed -E is not present on certain ancient
distros, so I'll use --regexp-extended instead which is equivalent

On Fri, 2020-02-14 at 11:48 +0000, luca.boccassi at gmail.com wrote:
> 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)
> 
-- 
Kind regards,
Luca Boccassi



More information about the stable mailing list