Merge pull request #526 from msvab/devel

maven_artifact: ensure latest snapshot of certain version is getting downloaded
This commit is contained in:
Brian Coca 2015-12-14 21:41:24 -05:00
commit 0415ac5cc3

View file

@ -332,7 +332,10 @@ def main():
if os.path.isdir(dest):
dest = dest + "/" + artifact_id + "-" + version + "." + extension
if os.path.lexists(dest):
prev_state = "present"
if not artifact.is_snapshot():
prev_state = "present"
elif downloader.verify_md5(dest, downloader.find_uri_for_artifact(artifact) + '.md5'):
prev_state = "present"
else:
path = os.path.dirname(dest)
if not os.path.exists(path):