community.general/plugins
brad2014 833e6e36de
Some checks failed
EOL CI / EOL Sanity (Ⓐ2.16) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.16+py2.7) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.16+py3.11) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.16+py3.6) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/3/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/3/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/3/) (push) Has been cancelled
nox / Run extra sanity tests (push) Has been cancelled
homebrew: Support old_tokens and oldnames in homebrew package data (#10805)
* homebrew: Support old_tokens and oldnames in homebrew package data

Fixes #10804

Since brew info will accept old_tokens (for casks) and oldnames (for formulae) when provided by the homebrew module "name" argument, the module also needs to consider thes old names as valid for the given package.  This commit updates _extract_package_name to do that.

All existing package name tests, including existing tests for name aliases and tap prefixing, have been consolidated with new name tests into package_names.yml.

* Added changelog fragment.

* homebrew: replace non-py2 compliant f-string usage

* code formatting lint, and py2 compatibility fixes

* homebrew: added licenses to new files, nox lint

* Update plugins/modules/homebrew.py

use str.format() instead of string addition

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update tests/integration/targets/homebrew/tasks/casks.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update tests/integration/targets/homebrew/tasks/package_names_item.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update tests/integration/targets/homebrew/tasks/formulae.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Fixes for performance concerns on new homebrew tests.
1) tests for alternate package names are commented out in main.yml.
2) the "install via alternate name, uninstall via base name" test
   case was deemed duplicative, and has been deleted .
3) minor fixes to use jinja2 "~" for string concat instead of "+"

* Fix nox lint

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2025-09-15 18:26:01 +02:00
..
action action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
become ansible-core 2.20: avoid deprecated functionality (#10687) 2025-08-18 06:25:23 +02:00
cache ansible-core 2.20: avoid deprecated functionality (#10687) 2025-08-18 06:25:23 +02:00
callback selective: don't hard code ansible_loop_var 'item' (#10752) 2025-08-29 06:32:15 +02:00
connection ansible-core 2.20: avoid deprecated functionality (#10687) 2025-08-18 06:25:23 +02:00
doc_fragments django_dumpdata, django_loaddata: new modules (#10726) 2025-09-03 21:49:11 +02:00
filter Add filters to_yaml and to_nice_yaml (#10784) 2025-09-08 18:48:49 +02:00
inventory remove extra brackets when params are a given by a comprehension (#10712) 2025-08-23 19:14:39 +02:00
lookup github_app_access_token: fix compatibility import of jwt (#10810) 2025-09-13 09:17:16 +02:00
module_utils gitlab_*_variable: support masked-and-hidden variables (#10787) 2025-09-08 18:40:35 +02:00
modules homebrew: Support old_tokens and oldnames in homebrew package data (#10805) 2025-09-15 18:26:01 +02:00
plugin_utils ansible-core 2.20: avoid deprecated functionality (#10687) 2025-08-18 06:25:23 +02:00
test ansible-core 2.20: avoid deprecated functionality (#10687) 2025-08-18 06:25:23 +02:00