This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #161 from snapcore/core-or-ubuntu-core
Prefer the "core" snap is one is available.
- Loading branch information
Showing
4 changed files
with
70 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
summary: The snap named 'core' is preferred to the snap 'ubuntu-core' | ||
prepare: | | ||
snap install --devmode snapd-hacker-toolbelt | ||
snap install core | ||
execute: | | ||
snapd-hacker-toolbelt.busybox cat /meta/snap.yaml | grep -q -F 'name: core' | ||
restore: | | ||
snap remove snapd-hacker-toolbelt | ||
# XXX: the core snap cannot be removed, we should use a trick to remove it | ||
# in some other way but this can wait. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters