mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 23:44:17 +08:00
Use cargo fetch when cookbook_redoxer not found
This commit is contained in:
parent
8a81e1f82c
commit
04ab545cb7
@ -14,17 +14,15 @@ else
|
||||
rm -rf $@ $@.partial
|
||||
mkdir -p $@.partial
|
||||
ln -sr recipes $@.partial/recipes
|
||||
ln -sr $@-target $@.partial/target
|
||||
|
||||
# Install cookbook, installer, and redoxfs for host (may be outside of podman container)
|
||||
#TODO: Build and install installer and redoxfs using cookbook?
|
||||
export CARGO_TARGET_DIR=$@.partial/target && \
|
||||
$(HOST_CARGO) install --root $@.partial --path . && \
|
||||
cd $@.partial && \
|
||||
./bin/repo fetch installer redoxfs && \
|
||||
cd ../.. && \
|
||||
$(HOST_CARGO) install --root $@.partial --path recipes/core/installer/source && \
|
||||
$(HOST_CARGO) install --root $@.partial --path recipes/core/redoxfs/source
|
||||
cd $@.partial && \
|
||||
export CARGO_TARGET_DIR=../$@-target && \
|
||||
$(HOST_CARGO) install --root . --path ../.. && \
|
||||
env -u RUSTUP_TOOLCHAIN ./bin/repo fetch installer redoxfs && \
|
||||
$(HOST_CARGO) install --root . --path recipes/core/installer/source && \
|
||||
$(HOST_CARGO) install --root . --path recipes/core/redoxfs/source
|
||||
|
||||
mv $@.partial $@
|
||||
touch $@
|
||||
|
||||
@ -405,7 +405,7 @@ pub(crate) fn fetch_cargo(
|
||||
} else {
|
||||
let cookbook_redoxer = Path::new("target/release/cookbook_redoxer")
|
||||
.canonicalize()
|
||||
.unwrap_or(PathBuf::from("/bin/false"));
|
||||
.unwrap_or(PathBuf::from("cargo"));
|
||||
Command::new(&cookbook_redoxer)
|
||||
};
|
||||
command.arg("fetch");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user