From 06977fef5eec416568ddf9eeead11e6cbb4d6fe6 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy <glex.spb@gmail.com> Date: Wed, 23 Aug 2023 07:46:58 +0900 Subject: [PATCH] debian-cross-aarch64-prep.sh: Support `file` paths These `file` paths are used to define mirrors on the GitHub Runner Image for Ubuntu 20.04 and 22.04. This should fix the flaky aarch64 build. --- Packaging/nix/debian-cross-aarch64-prep.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Packaging/nix/debian-cross-aarch64-prep.sh b/Packaging/nix/debian-cross-aarch64-prep.sh index 38f1247d61f..988cc01ceca 100755 --- a/Packaging/nix/debian-cross-aarch64-prep.sh +++ b/Packaging/nix/debian-cross-aarch64-prep.sh @@ -14,7 +14,8 @@ deb [arch=arm64] http://ports.ubuntu.com/ ${FLAVOR} multiverse deb [arch=arm64] http://ports.ubuntu.com/ ${FLAVOR}-updates multiverse deb [arch=arm64] http://ports.ubuntu.com/ ${FLAVOR}-backports main restricted universe multiverse LIST - sudo sed -i 's/deb http/deb [arch=amd64,i386] http/' /etc/apt/sources.list + sudo sed -E -i 's/deb (http|file|mirror)/deb [arch=amd64,i386] \1/' /etc/apt/sources.list + cat /etc/apt/sources.list fi sudo dpkg --add-architecture arm64