Closed chucker closed 9 years ago
From what I gather, PackageResult
would need (perhaps in a child class PackageUpgradeResult
?) to carry the information whether the package is up-to-date. The code path
if (availablePackage.Version > installedPackage.Version || config.Force)
{
if (availablePackage.Version > installedPackage.Version)
{
could then be extended accordingly, and the last argument here:
if (config.RegularOuptut)
{
this.Log().Warn(() => @"{0}There are {1} packages available for upgrade.{0} See the log for details.".format_with(
Environment.NewLine,
noopUpgrades.Count));
}
would need to be changed to, e.g. noopUpgrades.Count(u => u.VersionState == VersionState.NewerVersionAvailable)
.
Perhaps. I did extend it a bit:
Chocolatey can upgrade 10/127 package(s).
2 package(s) had warnings.
See the log for details.
Warnings:
- binroot
- ruby
Example:
It appears to count all packages, rather than the ones for which there is a newer version.