maven_artifact: Add classifier to default dest (#24518)

pull/21321/merge
Matthew Martin 7 years ago committed by Chris Alfonso
parent 870974e0be
commit 63e59a9825

@ -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…
Cancel
Save