maven_artifact: check whether snapshot is the latest snapshot
This commit is contained in:
parent
5187c7fcd7
commit
f9be73f4a1
1 changed files with 5 additions and 2 deletions
|
@ -339,6 +339,9 @@ def main():
|
|||
if os.path.isdir(dest):
|
||||
dest = dest + "/" + artifact_id + "-" + version + "." + extension
|
||||
if os.path.lexists(dest):
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue