From e76c575ea92c9fc09775e866c677c0121d290f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfonso=20S=C3=A1nchez-Beato?= Date: Wed, 17 May 2023 17:29:27 +0100 Subject: [PATCH] Pin packages from the ucdev staging PPA Otherwise we can get build errors due not synved yet grub-pc-bin and grub-efi-amd64-signed, and similarly for shim. --- snapcraft.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/snapcraft.yaml b/snapcraft.yaml index 91b33ba..1900a60 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -18,7 +18,21 @@ assumes: - snapd2.59.3 parts: + # Temporary workaround until pinning is supported by snapcraft + pin-ucdev: + plugin: nil + override-pull: | + # This is run before the pull step of grub part, so we make sure + # we get the packages from the PPA. + set -x + cat <<'EOF' > /etc/apt/preferences.d/ucdev + Package: * + Pin: release LP-PPA-ucdev-uc-staging-ppa,a=jammy,n=jammy + Pin: origin ppa.launchpad.net + Pin-Priority: 1000 + EOF grub: + after: [ pin-ucdev ] plugin: nil source: . build-packages: