1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

maven_artifact: Add classifier to default dest (#24518)

This commit is contained in:
Matthew Martin 2017-10-09 08:56:33 -05:00 committed by Chris Alfonso
parent 870974e0be
commit 63e59a9825

View file

@ -470,6 +470,10 @@ def main():
version_part = version
if keep_name and version == 'latest':
version_part = downloader.find_latest_version_available(artifact)
if classifier:
dest = posixpath.join(dest, "%s-%s-%s.%s" % (artifact_id, version_part, classifier, extension))
else:
dest = posixpath.join(dest, "%s-%s.%s" % (artifact_id, version_part, extension))
b_dest = to_bytes(dest, errors='surrogate_or_strict')