From d9e864aac0c2dcb2e3863972feb93963edf1009d Mon Sep 17 00:00:00 2001 From: John Whittington Date: Tue, 21 Nov 2023 12:38:02 +0100 Subject: [PATCH] allow empty CROSS_DEB_ARCH --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 541e5790..3a195d6a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -67,7 +67,7 @@ panic = "abort" codegen-units = 1 # quicker binary, slower build [package.metadata.cross.build] -pre-build = ["dpkg --add-architecture $CROSS_DEB_ARCH && apt-get update && apt-get install --assume-yes libusb-1.0-0-dev:$CROSS_DEB_ARCH libudev-dev:$CROSS_DEB_ARCH"] +pre-build = ["dpkg --add-architecture $CROSS_DEB_ARCH 2>/dev/null && apt-get update && apt-get install --assume-yes libusb-1.0-0-dev:$CROSS_DEB_ARCH libudev-dev:$CROSS_DEB_ARCH"] [package.metadata.deb] section = "utility"