1b0676b559
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> |
||
---|---|---|
.. | ||
__init__.py | ||
dnf.py | ||
homebrew.py | ||
homebrew_cask.py | ||
homebrew_tap.py | ||
layman.py | ||
macports.py | ||
openbsd_pkg.py | ||
opkg.py | ||
pacman.py | ||
pkg5.py | ||
pkg5_publisher.py | ||
pkgin.py | ||
pkgng.py | ||
pkgutil.py | ||
portage.py | ||
portinstall.py | ||
svr4pkg.py | ||
swdepot.py | ||
urpmi.py | ||
zypper.py | ||
zypper_repository.py |