pkgng: package reinstallations count as changed

`upgrade_packages()` only looked for the string
"Number of packages to be upgraded", but the
`pkg upgrade` command also reports "Number of packages to be
reinstalled". Reinstallation occurs when package metadata other
than version changes (e.g. build options, single architecture to `*`
architecture). In any other respect, though, a required
reinstallation is the same as an upgrade.
This commit is contained in:
Ross Williams
2021-10-08 19:02:07 +00:00
parent 9de01e04f2
commit 4fe3aea3a9
2 changed files with 6 additions and 3 deletions

View File

@@ -0,0 +1,2 @@
bugfixes:
- 'pkgng - `name=* state=latest` check for upgrades did not count "Number of packages to be reinstalled" as a `changed` action, giving incorrect results in both regular and check mode'