ansible/test
Sam Doran d45cb01b84
ansible-galaxy - fix collection installation with trailing slashes (#70016)
If we fail to find a member when extracting a directory, try adding a trailing
slash to the member name. In certain cases, the member in the tarfile will
contain a trailing slash but the file name in FILES.json will never contain
the trailing slash.

If unable to find the member, handle the KeyError and print a nicer error.

Also check if a directory exists before creating it since it may have been
extracted from the archive.

Fixes #70009

* Add unit tests
* Use loop for trying to get members
2020-06-15 17:36:07 -04:00
..
ansible_test
integration enable collections module_utils subpkg tests (#69957) 2020-06-15 09:34:25 -07:00
lib/ansible_test Fix missing allow_date=False. 2020-06-15 11:18:51 -07:00
sanity Use antsibull-changelog instead of packaged changelog generator (#69313) 2020-06-11 11:21:21 -07:00
support Deprecation revisited (#69926) 2020-06-09 15:21:19 -07:00
units ansible-galaxy - fix collection installation with trailing slashes (#70016) 2020-06-15 17:36:07 -04:00
utils/shippable Use antsibull-changelog instead of packaged changelog generator (#69313) 2020-06-11 11:21:21 -07:00