From 34b40547a2b87742133ed75f4e7eadcaac8c49a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20=27sil2100=27=20Zemczak?= Date: Mon, 22 Jan 2024 14:37:55 +0100 Subject: [PATCH] Add a temporary hack to use the stable channel for the ubuntu-core-desktop-installer snap. --- live-build/functions | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/live-build/functions b/live-build/functions index b017e4be..543ec107 100644 --- a/live-build/functions +++ b/live-build/functions @@ -735,6 +735,13 @@ snap_preseed() { esac fi + # XXX: This is temporary for testing purposes as the ubuntu-core-desktop-installer + # snap is not yet published to the right channels. + if [ "$SNAP_NAME" = "ubuntu-core-desktop-installer" ]; then + echo "WARNING: Overriding ubuntu-core-desktop-installer channel to stable for testing purposes" + CHANNEL="stable" + fi + # At this point: # SNAP_NAME is just the snap name # SNAP is either $SNAP_NAME or $SNAP_NAME/classic for classic confined