ansible / mazer

Experimental Ansible Galaxy Content Manager
GNU General Public License v3.0
113 stars 18 forks source link

Fix extraction of no-top-level artifacts #204

Closed alikins closed 5 years ago

alikins commented 5 years ago

Fix extraction of no-top-level artifacts

The repository (nee, collection) archive extraction code previously assumed the first char in the path name would always be '/'.

Since collection artifact archives no longer have a top dir, there is no leading '/'. Before this change, that would result in the first letter of all the top level collection items being removed on install.

ie, 'ANIFEST.json' and 'lugins' etc.

ISSUE TYPE
MAZER VERSION
name = mazer
version = 0.3.0
config_file = /home/adrian/.ansible/mazer.yml
uname = Linux, newswoop, 4.18.16-100.fc27.x86_64, #1 SMP Sun Oct 21 09:33:00 UTC 2018, x86_64
executable_location = /home/adrian/venvs/galaxy-cli-py3-2/bin/mazer
python_version = 3.6.6 (default, Jul 19 2018, 16:29:00) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)]
python_executable = /home/adrian/venvs/galaxy-cli-py3-2/bin/python3.6
ADDITIONAL INFORMATION