Skip to content

Commit 3ec7e12

Browse files
committed
fix write_cargo_recipe for nightly and stable version
1 parent c09cec0 commit 3ec7e12

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

build-new-version.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,16 @@ EOF
294294
}
295295
return get_by_triple(URLS, triple)
296296
297-
DEPENDS += "rust-bin-cross-\${TARGET_ARCH} (= ${TARGET_VERSION}-${NIGHTLY_DATE})"
297+
EOF
298+
299+
if is_nightly; then
300+
echo >> "$CARGO_BIN_RECIPE" "DEPENDS += \"rust-bin-cross-\${TARGET_ARCH} (= ${TARGET_VERSION}-${NIGHTLY_DATE})\""
301+
else
302+
echo >> "$CARGO_BIN_RECIPE" "DEPENDS += \"rust-bin-cross-\${TARGET_ARCH} (= ${TARGET_VERSION})\""
303+
fi
304+
305+
cat <<EOF >>${CARGO_BIN_RECIPE}
306+
298307
LIC_FILES_CHKSUM = "\\
299308
file://LICENSE-APACHE;md5=${CARGO_APACHE_EXPECTED} \\
300309
file://LICENSE-MIT;md5=${CARGO_MIT_EXPECTED} \\

0 commit comments

Comments
 (0)