From: Georgy Yakovlev Date: Fri, 10 Jan 2020 08:19:07 +0000 (-0800) Subject: cargo.eclass: make regex both readonly and local X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=57367f23afc0babb6735b15b10371b56ff7866c1;p=gentoo.git cargo.eclass: make regex both readonly and local Signed-off-by: Georgy Yakovlev --- diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index 9a583307a6ab..79d8863017d1 100644 --- a/eclass/cargo.eclass +++ b/eclass/cargo.eclass @@ -39,7 +39,7 @@ ECARGO_VENDOR="${ECARGO_HOME}/gentoo" # @DESCRIPTION: # Generates the URIs to put in SRC_URI to help fetch dependencies. cargo_crate_uris() { - readonly regex='^(.*)-([0-9]+\.[0-9]+\.[0-9]+.*)$' + local -r regex='^(.*)-([0-9]+\.[0-9]+\.[0-9]+.*)$' local crate for crate in "$@"; do local name version url