ansible/packaging/os
Dustin C. Hatch e3d608297d packaging/os/portage: Handle noreplace in check mode
The `--noreplace` argument to `emerge` is generally coupled with
`--newuse` or `--changed-use`, and can be used instruct Portage to
rebuild a package only if necessary. Simply checking to see if the
package is already installed using `equery` is not sufficient to
determine if any changes would be made, so that step is skipped when
the `noreplace` module argument is specified. The module then falls back
to parsing the output from `emerge` to determine if anything changed. In
check mode, `emerge` is called with `--pretend`, so it produces
different output, and the parsing fails to correctly infer that a change
would be made.

This commit adds another regular expression to check when running in
check mode that matches the pretend output from `emerge`.

Signed-off-by: Dustin C. Hatch <dustin@hatch.name>
2015-06-18 14:05:59 -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: Handle noreplace in check mode 2015-06-18 14:05:59 -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