You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/lib/ansible
Dustin C. Hatch 90df50b045 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>
8 years ago
..
cli Transform vault_pass into text when we read it in from the user or a file. (#18699) 8 years ago
compat Move py34 mock_open compat to compat/test/mock (#17157) 8 years ago
config
errors Add error info if tabs are found in the yaml (#18343) 8 years ago
executor unified boolean function 8 years ago
galaxy For container enabled role, display warning only when not ANSIBLE_CONTAINER (#18717) 8 years ago
inventory Properly sort groups by name as well as depth when getting vars 8 years ago
module_utils module_utils: ovirt: Add support to fetch nested object's attributes (#18666) 8 years ago
modules packaging/os/portage: Handle noreplace in check mode 8 years ago
parsing Remove method that isn't used here. (#18713) 8 years ago
playbook smart quotes, die die die. 8 years ago
plugins add back reverted change to network_cli (#18761) 8 years ago
template always template when called from template (#18490) 8 years ago
utils module_utils: ovirt: Add support to fetch nested object's attributes (#18666) 8 years ago
vars ansible_playbook_python (#18530) 8 years ago
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 9 years ago
constants.py Document the get_config function 8 years ago
release.py Bumping devel version to 2.3.0 8 years ago
test-requirements.txt