Public bug reported:

'snap refresh' exits with return code 1 if the snap is already the
latest version.

It would make scripting much easier if it returned with a specific error
code for this case. In particular, juju charms need to ensure their snap
is up to date and can't tell between 'already up to date' and 'the
network is down'.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: snap (not installed)
ProcVersionSignature: Ubuntu 4.4.0-24.43-generic 4.4.10
Uname: Linux 4.4.0-24-generic x86_64
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl nvidia_uvm 
nvidia_modeset nvidia
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Jun 22 14:18:30 2016
InstallationDate: Installed on 2016-02-26 (116 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160224)
SourcePackage: snap
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: snappy
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug xenial

** Also affects: snappy
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1595064

Title:
  'snap refresh' return code unhelpful

To manage notifications about this bug go to:
https://bugs.launchpad.net/snappy/+bug/1595064/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to