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/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>
10 years ago
..
__init__.py
dnf.py Changes to author formatting, remove emails 10 years ago
homebrew.py Changes to author formatting, remove emails 10 years ago
homebrew_cask.py Changes to author formatting, remove emails 10 years ago
homebrew_tap.py Changes to author formatting, remove emails 10 years ago
layman.py Changes to author formatting, remove emails 10 years ago
macports.py
openbsd_pkg.py Changes to author formatting, remove emails 10 years ago
opkg.py Changes to author formatting, remove emails 10 years ago
pacman.py Merge pull request #480 from RubenKelevra/patch-2 10 years ago
pkg5.py Changes to author formatting, remove emails 10 years ago
pkg5_publisher.py Changes to author formatting, remove emails 10 years ago
pkgin.py Changes to author formatting, remove emails 10 years ago
pkgng.py Changes to author formatting, remove emails 10 years ago
pkgutil.py Changes to author formatting, remove emails 10 years ago
portage.py packaging/os/portage: Handle noreplace in check mode 10 years ago
portinstall.py Changes to author formatting, remove emails 10 years ago
svr4pkg.py svr4pkg: assume command worked only on known-to-be-good returncodes 10 years ago
swdepot.py Changes to author formatting, remove emails 10 years ago
urpmi.py Changes to author formatting, remove emails 10 years ago
zypper.py Changes to author formatting, remove emails 10 years ago
zypper_repository.py Changes to author formatting, remove emails 10 years ago