From: Matt Jolly <kan...@gentoo.org>

These commits are part of a larger body of work which will
enable us to add the `beta` and `nightly` channels to
dev-lang/rust{,-bin}.

Please feel free to provide feedback on the commits directly
via the following PR: https://github.com/gentoo/gentoo/pull/40524
which will be merged after Rust 1.85.0 is pushed to the `stable`
channel upstream.

1. tidy up `rust_all_arch_uris`

- There is an obsolete `loong` conditional which is now applied
  unconditionally.

- Logic for `mips` (which is only used by one ebuild) has been removed
  from the eclass. It is added to that ebuild in a separate commit.

2. add a rename param to `rust_all_arch_uris`

- `rust_arch_uri` already supports renaming distfiles; this commit adds
required plumbing that enables us to use that functionality via
`rust_all_arch_uris` for the `beta` channel.

- `rust_all_arch_uris` now uses local variables instead of "$1" and "$2" for
  readability.

- Also updates `rust_arch_uri` to produce an appropriate `verify-sig?`
  conditional (including rename) when called in this way.

Matt Jolly (2):
  rust-toolchain.eclass: simplify `rust_all_arch_uris`
  rust-toolchain.eclass: add rename param to `rust_all_arch_uris()`

 eclass/rust-toolchain.eclass | 59 ++++++++++++------------------------
 1 file changed, 20 insertions(+), 39 deletions(-)

-- 
2.48.0


Reply via email to