mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 03:23:20 -04:00
dev-util/rust-script: check for Cargo config.toml before creation
https://public-inbox.gentoo.org/gentoo-dev/20240725180612.19453-2-chewi@gentoo.org/T/#u will replace `config` with `config.toml`, thus cause the creation of the latter to fail. Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
This commit is contained in:
@@ -122,5 +122,7 @@ src_prepare() {
|
||||
use debug || sed -i "s|/debug/|/release/|" tests/util/mod.rs || die
|
||||
|
||||
# cargo.eclass uses the old config and deprecation warning breaks the test.
|
||||
ln -s "${ECARGO_HOME}/config" "${ECARGO_HOME}/config.toml" || die
|
||||
if [[ ! -e "${ECARGO_HOME}/config.toml" ]]; then
|
||||
ln -s "${ECARGO_HOME}/config" "${ECARGO_HOME}/config.toml" || die
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user