]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-update.cc
releasing package apt version 1.1~exp1
[apt.git] / apt-private / private-update.cc
index fa827dea4216bd3689fa8d8ec15bb77c22d40897..0f2f7a8daf036beb711148f2a6b58782f4f30bf6 100644 (file)
@@ -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;