From 08ac2819f8c4ecdef3cd15b7e7c0e792c57b8aa2 Mon Sep 17 00:00:00 2001 From: Steven Walter Date: Fri, 2 Sep 2016 20:14:02 -0400 Subject: [PATCH] lib/crate.py: update magic hash for new cargo --- classes/cargo_util.bbclass | 4 ++-- lib/crate.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/classes/cargo_util.bbclass b/classes/cargo_util.bbclass index 81d4c85..29bd695 100644 --- a/classes/cargo_util.bbclass +++ b/classes/cargo_util.bbclass @@ -91,8 +91,8 @@ cargo_util_do_compile () { cd "${B}" # prevent cargo from trying to fetch down new data - mkdir -p "${WORKDIR}/cargo_home/registry/index/" - touch "${WORKDIR}/cargo_home/registry/index/.cargo-index-lock" + mkdir -p "${WORKDIR}/cargo_home/registry/index/github.com-1ecc6299db9ec823" + touch "${WORKDIR}/cargo_home/registry/index/github.com-1ecc6299db9ec823/.cargo-index-lock" oe_cargo_fix_env oe_cargo_build diff --git a/lib/crate.py b/lib/crate.py index be626fc..3197037 100644 --- a/lib/crate.py +++ b/lib/crate.py @@ -35,7 +35,8 @@ class Crate(Wget): def _cargo_path(self, rootdir, component): # TODO: make this less brittle - repo = "github.com-88ac128001ac3a9a" + # This can go away entirely once we can build a cargo that supports source-replacement + repo = "github.com-1ecc6299db9ec823" return os.path.join(rootdir, "cargo_home", "registry", component, repo) def _cargo_src_path(self, rootdir):