'snap install' return code unhelpful
Bug #1622782 reported by
Jacek Nykis
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snap Layer |
Fix Released
|
Critical
|
Stuart Bishop | ||
Snappy |
Fix Released
|
Undecided
|
Unassigned | ||
snapd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
'snap install <name>' exits with return code 1 if the snap is already installed and prints error message:
error: cannot install "<name>": snap "<name>" already installed
It would make scripting much easier if it worked in the same way as apt-get which is to return 0 when there is nothing to do with info message, something like:
"snap <name> already installed"
snap 2.14.2~16.04
snapd 2.14.2~16.04
series 16
ubuntu 16.04
tags: | added: canonical-is |
Changed in snapd (Ubuntu): | |
status: | New → Triaged |
Changed in layer-snap: | |
status: | In Progress → Fix Released |
assignee: | nobody → Stuart Bishop (stub) |
Changed in layer-snap: | |
status: | Fix Released → Confirmed |
Changed in layer-snap: | |
status: | Confirmed → Fix Released |
Changed in snappy: | |
status: | New → Fix Released |
Changed in snapd (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in snappy: | |
status: | Fix Released → Fix Committed |
Changed in snapd (Ubuntu): | |
status: | Fix Committed → Fix Released |
Changed in snappy: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Snap layer for juju needs to work around this bug to make the install helper idempotent.