diff --git a/post_upload.py b/post_upload.py index a88db5a..3f24738 100644 --- a/post_upload.py +++ b/post_upload.py @@ -89,7 +89,9 @@ for file in incomingFiles: m = re.match(r'(\w+)-\d+\.\d+\.\d+-([\w-]+)' + suffix, file) latestName = m.group(1) + '-latest-' + m.group(2) + suffix + print "Creating symlink from " + file + " to " + latestName if os.path.exists(latestName): + print "\tremoving existing target" os.remove(latestName) os.symlink(file, latestName)