ansible/packaging/os
Dustin C. Hatch 1b0676b559 packaging/os/portage: Improve check mode handling
When running in check mode, the *portage* module always reports that no
changes were made, even if the requested packages do not exist on the
system. This is because it was erroneously expecting `emerge --pretend`
to produce the same output as `emerge` by itself would, and attempts to
parse it. This is not correct, for several reasons. Most specifically,
the string for which it is searching does not exist in the pretend
output. Additionally, `emerge --pretend` always prints the requested
packages, whether they are already installed or not; in the former case,
it shows them as reinstalls.

This commit adjusts the behavior to rely on `equery` alone when running
in check mode. If `equery` reports at least one package is not
installed, then nothing else is done: the system will definitely be
changed.

Signed-off-by: Dustin C. Hatch <dustin@hatch.name>
2015-06-18 13:50:43 -05:00
..
__init__.py Reorganization. 2014-11-04 17:31:59 -05:00
dnf.py Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
homebrew.py Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
homebrew_cask.py Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
homebrew_tap.py Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
layman.py Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
macports.py Adding author's github id 2015-05-14 00:15:38 -04:00
openbsd_pkg.py Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
opkg.py Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
pacman.py Merge pull request #480 from RubenKelevra/patch-2 2015-05-26 10:04:52 -04:00
pkg5.py Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
pkg5_publisher.py Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
pkgin.py Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
pkgng.py Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
pkgutil.py Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
portage.py packaging/os/portage: Improve check mode handling 2015-06-18 13:50:43 -05:00
portinstall.py Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
svr4pkg.py svr4pkg: assume command worked only on known-to-be-good returncodes 2015-05-27 13:35:34 +02:00
swdepot.py Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
urpmi.py Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
zypper.py Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
zypper_repository.py Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00