diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2020-01-10 00:19:07 -0800 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2020-01-10 00:33:46 -0800 |
commit | 57367f23afc0babb6735b15b10371b56ff7866c1 (patch) | |
tree | 5361c6058bc02e1a46486749c45a4fc9340e061f /eclass/cargo.eclass | |
parent | cargo.eclass: Use a regex to fix crate name/version extraction (diff) | |
download | gentoo-57367f23afc0babb6735b15b10371b56ff7866c1.tar.gz gentoo-57367f23afc0babb6735b15b10371b56ff7866c1.tar.bz2 gentoo-57367f23afc0babb6735b15b10371b56ff7866c1.zip |
cargo.eclass: make regex both readonly and local
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'eclass/cargo.eclass')
-rw-r--r-- | eclass/cargo.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
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 |