cargo_util: ensure directory exists prior to the file touch

Signed-off-by: Derek Straka <derek@asterius.io>
This commit is contained in:
Derek Straka
2016-08-02 10:42:19 -04:00
parent fc9645c15b
commit 1f42bdc679
+3 -2
View File
@@ -62,8 +62,9 @@ oe_cargo_fix_env () {
cargo_util_do_compile () {
cd "${B}"
# prevent cargo from trying to fetch down new data
touch "${WORKDIR}/cargo_home/registry/index/.cargo-index-lock"
# 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"
oe_cargo_fix_env
oe_cargo_build