diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2020-04-04 17:21:41 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2020-04-04 17:42:39 +0200 |
commit | 72d409554b246451c3ebed06416e7680df2076e7 (patch) | |
tree | 67cc8fcdeef4709f8beb5c0e94745619e96581c4 /eclass | |
parent | dev-vcs/cli: 0.6.4 bump (diff) | |
download | gentoo-72d409554b246451c3ebed06416e7680df2076e7.tar.gz gentoo-72d409554b246451c3ebed06416e7680df2076e7.tar.bz2 gentoo-72d409554b246451c3ebed06416e7680df2076e7.zip |
Improve the name-version regex
See:
https://doc.rust-lang.org/cargo/reference/manifest.html#the-name-field
Unbreaks crates using `curl-sys` version `0.4.30+curl-7.69.1` and such.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to '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 6776a4b03ac6..6f7ffdb626b4 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() { - local -r regex='^(.*)-([0-9]+\.[0-9]+\.[0-9]+.*)$' + local -r regex='^([a-zA-Z0-9_\-]+)-([0-9]+\.[0-9]+\.[0-9]+.*)$' local crate for crate in "$@"; do local name version url |