# make sure the source dir is exists
if not os.path.exists(path_repo_snapshot):
- print("The snapshot %s of %s doesn't exists on download server"
- %(release_id, release_profile))
- return -1
+ path_repo_snapshot = path_repo_snapshot.replace('snapshots','releases/daily')
+ if not os.path.exists(path_repo_snapshot):
+ print("The snapshot %s of %s doesn't exists on download server"
+ %(release_id, release_profile))
+ return -1
# figure out the release destination dir
release_dir = "releases/%s" % release_type