From 57367f23afc0babb6735b15b10371b56ff7866c1 Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev Date: Fri, 10 Jan 2020 00:19:07 -0800 Subject: cargo.eclass: make regex both readonly and local Signed-off-by: Georgy Yakovlev --- eclass/cargo.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eclass') 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 -- cgit v1.2.3-65-gdbad