summaryrefslogtreecommitdiff
path: root/apt-private/private-update.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-06-18 08:32:59 +0200
committerMichael Vogt <mvo@debian.org>2014-06-18 08:32:59 +0200
commit9eaa24c169b547d6c6a4815bb19eabcbec243317 (patch)
tree8356aa93d071101ad0c2e6f3e3d937006a068e69 /apt-private/private-update.cc
parent6074bc9ba4ecdd08674a828bdb46323b5d8bf957 (diff)
parent24d05892fe96d52aaceef7af94d0e444e140067c (diff)
Merge remote-tracking branch 'mvo/debian/sid' into debian/sid
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;