mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 15:11:23 -07: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
|
version_part = version
|
||||||
if keep_name and version == 'latest':
|
if keep_name and version == 'latest':
|
||||||
version_part = downloader.find_latest_version_available(artifact)
|
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))
|
dest = posixpath.join(dest, "%s-%s.%s" % (artifact_id, version_part, extension))
|
||||||
b_dest = to_bytes(dest, errors='surrogate_or_strict')
|
b_dest = to_bytes(dest, errors='surrogate_or_strict')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue