Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Fri, 10 Jan 2020 08:34:14
Message-Id: 1578645226.57367f23afc0babb6735b15b10371b56ff7866c1.gyakovlev@gentoo
1 commit: 57367f23afc0babb6735b15b10371b56ff7866c1
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 10 08:19:07 2020 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 10 08:33:46 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57367f23
7
8 cargo.eclass: make regex both readonly and local
9
10 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
11
12 eclass/cargo.eclass | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
16 index 9a583307a6a..79d8863017d 100644
17 --- a/eclass/cargo.eclass
18 +++ b/eclass/cargo.eclass
19 @@ -39,7 +39,7 @@ ECARGO_VENDOR="${ECARGO_HOME}/gentoo"
20 # @DESCRIPTION:
21 # Generates the URIs to put in SRC_URI to help fetch dependencies.
22 cargo_crate_uris() {
23 - readonly regex='^(.*)-([0-9]+\.[0-9]+\.[0-9]+.*)$'
24 + local -r regex='^(.*)-([0-9]+\.[0-9]+\.[0-9]+.*)$'
25 local crate
26 for crate in "$@"; do
27 local name version url