daemon: do not allow to install ubuntu-core anymore #3289

Merged
merged 6 commits into from May 16, 2017

Conversation

Projects
None yet
3 participants
Collaborator

mvo5 commented May 10, 2017

There is no need to install ubuntu-core any-more with current snapd.
People with existing installs will auto-transition to core on the
next refresh.

Some more background: https://forum.snapcraft.io/t/error-using-obsolete-ubuntu-core-snap-on-classic/525/3

I.e. we will also freeze ubuntu-core as part of this effort so that we don't have to maintain compatibility code in snapd itself that checks for both ubuntu-core and core all the time.

LP: #1689332

mvo5 added some commits May 10, 2017

do not allow to install ubuntu-core anymore
There is no need to install ubuntu-core anymore with current snapd.
People with existing installs will auto-transition to core on the
next refresh.

LP: #1689332

zyga approved these changes May 10, 2017

Two nitpicks but feel free to ignore and land

daemon/api.go
@@ -910,6 +910,20 @@ func snapUpdateMany(inst *snapInstruction, st *state.State) (msg string, updated
return msg, updated, tasksets, nil
}
+func verifySnapInstructions(inst *snapInstruction) error {
+ if inst.Action == "install" {
@zyga

zyga May 10, 2017

Contributor

Nitpick, switch/case on the inst.Action, this will also make the code less indented.

@mvo5

mvo5 May 12, 2017

Collaborator

Indeed, that is nicer, thank you!

tests/main/install-errors/task.yaml
+ echo "Installing ubuntu-core should fail"
+ exit 1
+ fi
+ cat stderr.out | MATCH "cannot install \"ubuntu-core\", please use \"core\" instead"
@zyga

zyga May 10, 2017

Contributor

nitpick, use single quotes here

@mvo5

mvo5 May 12, 2017

Collaborator

Thanks, fixed

mvo5 and others added some commits May 10, 2017

@mvo5 mvo5 modified the milestone: 2.26 May 11, 2017

@chipaca chipaca merged commit 9fef75c into snapcore:master May 16, 2017

7 checks passed

artful-amd64 autopkgtest finished (success)
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
xenial-amd64 autopkgtest finished (success)
Details
xenial-i386 autopkgtest finished (success)
Details
xenial-ppc64el autopkgtest finished (success)
Details
yakkety-amd64 autopkgtest finished (success)
Details
zesty-amd64 autopkgtest finished (success)
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment