Skip to content

Commit

Permalink
Pin packages from the ucdev staging PPA
Browse files Browse the repository at this point in the history
Otherwise we can get build errors due not synved yet grub-pc-bin and
grub-efi-amd64-signed, and similarly for shim.
  • Loading branch information
alfonsosanchezbeato committed May 18, 2023
1 parent 6756f51 commit e76c575
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e76c575

Please sign in to comment.