diff --git a/ansible-generator b/ansible-generator index 3bdff8b..ab9baa4 100755 --- a/ansible-generator +++ b/ansible-generator @@ -27,10 +27,12 @@ def main(): ) if args.action == "requires": print("(ansible >= 2.9.0 with ansible < 2.10.0)") - if info["dependencies"]: - raise NotImplementedError( - "Generation of dependencies is not supported yet" - ) + for dep, req in info.get("dependencies", {}).items(): + if req != "*": + raise NotImplementedError( + "Generation of dependencies different than '*' is not supported yet" + ) + print(f"ansible-collection({dep})") if __name__ == "__main__": diff --git a/ansible.spec b/ansible.spec index f774e1f..08b18ba 100644 --- a/ansible.spec +++ b/ansible.spec @@ -18,7 +18,7 @@ Name: ansible Summary: SSH-based configuration management, deployment, and task execution system Version: 2.9.11 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv3+ Source0: https://releases.ansible.com/ansible/%{name}-%{version}.tar.gz @@ -128,7 +128,7 @@ are transferred to managed machines automatically. This package installs extensive documentation for ansible %prep -%autosetup -p1 -n %{name}-%{version} +%autosetup -p1 cp -a %{S:1} %{S:2} %{S:3} . %build @@ -237,6 +237,9 @@ make PYTHON=/usr/bin/python3 tests-py3 %endif %changelog +* Sat Aug 08 2020 Igor Raits - 2.9.11-3 +- Add very basic support for generating dependencies in RPM generator + * Mon Jul 27 2020 Fedora Release Engineering - 2.9.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild