ansible/packaging
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
..
language Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
os packaging/os/portage: Handle noreplace in check mode 2015-06-18 14:05:59 -05:00
__init__.py Add missing __init__.py files for find_package() to work 2014-10-03 16:34:28 -07:00
dpkg_selections Add dpkg_selections module, that works with dpkg --get-selections and --set-selections. 2015-06-17 11:07:09 +01:00