mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-05 00:11:57 +00:00
* Fix typo in redhat_subscription testcase * Fix macports state=present matching against the wrong package name Previous implementation returned true if the desired package name occurred anywhere in the list of all installed packages. For example as a substring of another package name, or even as a substring of a variant name for a different package. Instead: - request macports only list installed packages matching the desired package name, instead of all installed packages. - Note `port` exits with 0 regardless of whether any packages match the requested name. - pass `-q` flag: "Do not print the header line. This is useful when parsing the output of port installed in scripts for further processing." - eliminate `use_unsafe_shell=True` by searching stdout contents natively in python instead of using `grep`. This has the added benefit of eliminating any potential misinterpretation of characters in the package name as regex special characters. If there are zero matching installed packages, `out` is empty. If there are one or more matches (due to multiple installed versions), the output format is: |
||
|---|---|---|
| .. | ||
| apk.py | ||
| apt_repo.py | ||
| apt_rpm.py | ||
| flatpak.py | ||
| flatpak_remote.py | ||
| homebrew.py | ||
| homebrew_cask.py | ||
| homebrew_tap.py | ||
| installp.py | ||
| layman.py | ||
| macports.py | ||
| mas.py | ||
| openbsd_pkg.py | ||
| opkg.py | ||
| pacman.py | ||
| pkg5.py | ||
| pkg5_publisher.py | ||
| pkgin.py | ||
| pkgng.py | ||
| pkgutil.py | ||
| portage.py | ||
| portinstall.py | ||
| pulp_repo.py | ||
| redhat_subscription.py | ||
| rhn_channel.py | ||
| rhn_register.py | ||
| rhsm_release.py | ||
| rhsm_repository.py | ||
| slackpkg.py | ||
| snap.py | ||
| sorcery.py | ||
| svr4pkg.py | ||
| swdepot.py | ||
| swupd.py | ||
| urpmi.py | ||
| xbps.py | ||
| zypper.py | ||
| zypper_repository.py | ||