Commit Graph

6 Commits

Author SHA1 Message Date
Adam Mendlik
26322e990a
Account for output variations in pkgng._parse_upgrade 2018-03-03 11:48:10 -07:00
Adam Mendlik
5af1120ab4
Parse packages to be installed in pkgng.list_upgrades 2018-01-08 19:12:01 -07:00
Adam Mendlik
96d40f8a70
Use pkg-upgrade command to list upgrades for FreeBSD
This change reimplements the pkgng.list_upgrades function
to use the `pkg upgrade --dry-run` command. An earlier version
of this function used `pkg version`, but it had several problems:

1) Long execution times when used with multiple repositories
   and the --no-repo-update argument.
2) It would show expected upgrades for a package when any repository
   had a newer version available. FreeBSD, by default, only
   applies upgrades from the repository the package was originally
   installed from.
3) It would show expected upgrades for locked packages.
2018-01-02 15:35:17 -07:00
Adam Mendlik
96cbe402ed
Reformat multi-line string literals in test_pkgng 2018-01-02 15:35:16 -07:00
Adam Mendlik
87c0208c7f
Add unit tests for pkgng.list_upgrades 2018-01-02 15:35:16 -07:00
Adam Mendlik
292db68c44
Add unit tests for pkgng.lock and pkgng.unlock 2018-01-02 15:35:16 -07:00