summaryrefslogtreecommitdiff
path: root/apt-private/private-update.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-06-18 08:25:16 +0200
committerMichael Vogt <mvo@debian.org>2014-06-18 08:25:16 +0200
commit24d05892fe96d52aaceef7af94d0e444e140067c (patch)
tree5c407f431672b1f81a7d5238286492f248df4b6b /apt-private/private-update.cc
parenteb197ed71b1535f3c1715c8a751485ef927b51b7 (diff)
Tell the user if no updates are available after apt update
Thanks to Jakub Wilk for the suggestion. Closes: #751388
Diffstat (limited to 'apt-private/private-update.cc')
-rw-r--r--apt-private/private-update.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/apt-private/private-update.cc b/apt-private/private-update.cc
index fa827dea4..a843d6f86 100644
--- a/apt-private/private-update.cc
+++ b/apt-private/private-update.cc
@@ -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);
- ioprintf(c1out, msg, upgradable);
+ if (upgradable == 0)
+ c1out << _("All packages are up to date.") << std::endl;
+ else
+ ioprintf(c1out, msg, upgradable);
}
return true;