1 |
commit: 9302e0ccc9521d8a0cf401431c62218015efb370 |
2 |
Author: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 20 09:20:12 2018 +0000 |
4 |
Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 29 13:21:16 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9302e0cc |
7 |
|
8 |
cargo.eclass: restrict pretag pattern to allow extended versions |
9 |
|
10 |
This is needed for openssl-src, which has a version like 110.0.7+1.1.0i. |
11 |
|
12 |
Signed-off-by: Dirkjan Ochtman <djc <AT> gentoo.org> |
13 |
|
14 |
eclass/cargo.eclass | 2 +- |
15 |
1 file changed, 1 insertion(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass |
18 |
index a15dfa9f30c..bb27aa315ee 100644 |
19 |
--- a/eclass/cargo.eclass |
20 |
+++ b/eclass/cargo.eclass |
21 |
@@ -39,7 +39,7 @@ cargo_crate_uris() { |
22 |
local name version url pretag |
23 |
name="${crate%-*}" |
24 |
version="${crate##*-}" |
25 |
- pretag="[a-zA-Z]+" |
26 |
+ pretag="^[a-zA-Z]+" |
27 |
if [[ $version =~ $pretag ]]; then |
28 |
version="${name##*-}-${version}" |
29 |
name="${name%-*}" |