From 8ba219ed78d09c2a1ce8c9d4e519e1ebe799fc2d Mon Sep 17 00:00:00 2001 From: "chris.schmidt" Date: Wed, 18 Feb 2015 09:24:21 -0700 Subject: [PATCH] Added check for "latest" in version field --- packaging/maven_artifact.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/maven_artifact.py b/packaging/maven_artifact.py index 75837050892..699d97a54c2 100755 --- a/packaging/maven_artifact.py +++ b/packaging/maven_artifact.py @@ -250,7 +250,7 @@ class MavenDownloader: def download(self, artifact, filename=None): filename = artifact.get_filename(filename) - if not artifact.version: + if not artifact.version or artifact.version == "latest": artifact = Artifact(artifact.group_id, artifact.artifact_id, self._find_latest_version_available(artifact), artifact.classifier, artifact.extension)