diff options
Diffstat (limited to 'apt-private/private-update.cc')
-rw-r--r-- | apt-private/private-update.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apt-private/private-update.cc b/apt-private/private-update.cc index fa827dea4..0f2f7a8da 100644 --- a/apt-private/private-update.cc +++ b/apt-private/private-update.cc @@ -86,11 +86,14 @@ bool DoUpdate(CommandLine &CmdL) if (I->CurrentVer != 0 && state.Upgradable()) upgradable++; } - const char *msg = ngettext( + const char *msg = P_( "%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; |