snap list reports no snaps installed when invalid name passed

Bug #1598984 reported by Robert Ancell
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snapd
Triaged
Low
Unassigned

Bug Description

From comment #3:

  $ snap list notasnap
  notasnap is not installed but is available in the store.
  Try 'snap install notasnap' or 'snap info notasnap'.

  $ snap list foobar
  foobar is not installed, and not available in the store.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Looking at the snapd code the error is displayed if the number of snaps that match the supplied name(s) is zero.

Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1598984] [NEW] snap list reports no snaps installed when invalid name passed

Good catch.

 status: confirmed

Changed in snappy:
status: New → Confirmed
Revision history for this message
Mark Shuttleworth (sabdfl) wrote :

I'd suggest the following:

  $ snap list notasnap
  notasnap is not installed but is available in the store.
  Try 'snap install notasnap' or 'snap info notasnap'.

  $ snap list foobar
  foobar is not installed, and not available in the store.

Mark

Revision history for this message
John Lenton (chipaca) wrote :

bug lp:1607717 marked as duplicate of this one, even though that one is fix committed, because the ux described here isn't implemented yet:

$ snap list
Name Version Rev Developer Notes
http 4.66920160910 18 chipaca -
ubuntu-core 16.04+20160531.11-56 122 canonical -
$ snap list hello-world
error: no matching snaps installed
$

Michael Vogt (mvo)
Changed in snappy:
importance: Undecided → Low
status: Confirmed → Triaged
description: updated
Michael Vogt (mvo)
affects: snappy → snapd
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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