]> git.saurik.com Git - apt.git/commitdiff
Tell the user if no updates are available after apt update
authorMichael Vogt <mvo@debian.org>
Wed, 18 Jun 2014 06:25:16 +0000 (08:25 +0200)
committerMichael Vogt <mvo@debian.org>
Wed, 18 Jun 2014 06:25:16 +0000 (08:25 +0200)
Thanks to Jakub Wilk for the suggestion.

Closes: #751388
apt-private/private-update.cc

index fa827dea4216bd3689fa8d8ec15bb77c22d40897..a843d6f8684797b245f25416e3d7cf7f812d93f8 100644 (file)
@@ -90,7 +90,10 @@ bool DoUpdate(CommandLine &CmdL)
          "%i package can be upgraded. Run 'apt list --upgradable' to see it.\n",
          "%i packages can be upgraded. Run 'apt list --upgradable' to see them.\n",
          upgradable);
          "%i package can be upgraded. Run 'apt list --upgradable' to see it.\n",
          "%i packages can be upgraded. Run 'apt list --upgradable' to see them.\n",
          upgradable);
-      ioprintf(c1out, msg, upgradable);
+      if (upgradable == 0)
+         c1out << _("All packages are up to date.") << std::endl;
+      else
+         ioprintf(c1out, msg, upgradable);
    }
 
    return true;
    }
 
    return true;