snappy should not claim to install/remove before validating provided package name

Bug #1439734 reported by James Hunt
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Low
Unassigned

Bug Description

ubuntu@localhost:~$ sudo snappy install moo
Installing moo
No package '' for ubuntu-core/devel-proposed

ubuntu@localhost:~$ sudo snappy remove moo
Removing moo
snappy package not found

The current behaviour is misleading since the user -- fleetingly -- believes the operation will progress. I think we should change the behaviour to only emit the "Installing" / "Removing" message once the package has been validated:

ubuntu@localhost:~$ sudo snappy install moo
No package '' for ubuntu-core/devel-proposed
ubuntu@localhost:~$ sudo snappy install docker
Installing docker

ubuntu@localhost:~$ sudo snappy remove moo
snappy package not found
ubuntu@localhost:~$ sudo snappy remove docker
Removing docker

_____
(Note the "No package ''..." is fixed by https://code.launchpad.net/~jamesodhunt/snappy/dont-clobber-pkgname-if-pkg-ENOENT/+merge/255052).

Michael Vogt (mvo)
Changed in snappy-ubuntu:
status: New → Confirmed
importance: Undecided → Low
Michael Terry (mterry)
affects: snappy-ubuntu → snappy
Leo Arias (elopio)
Changed in snappy:
status: Confirmed → Triaged
Revision history for this message
Michael Vogt (mvo) wrote :

This is no longer printed in the snappy 16 series.

Changed in snappy:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.