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:
parent
870974e0be
commit
63e59a9825
1 changed files with 5 additions and 1 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue