diff options
author | Deepti B. Kalakeri <deepti.kalakeri@linaro.org> | 2012-05-30 22:07:10 +0530 |
---|---|---|
committer | Deepti B. Kalakeri <deepti.kalakeri@linaro.org> | 2012-05-30 22:07:10 +0530 |
commit | b6671fb7246ffc8e460dfc01c1d6ecd7dc28c1d4 (patch) | |
tree | bbe26752beef4fe9772f822e1d94ef199ff4c16f /find_latest.py | |
parent | 7915d748362009ca9857369fa30d895099a5ae06 (diff) |
Modify CI scripts to use the images from the most recent build dir from s.l.o
Diffstat (limited to 'find_latest.py')
-rw-r--r-- | find_latest.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/find_latest.py b/find_latest.py index ab08ff0..cffc660 100644 --- a/find_latest.py +++ b/find_latest.py @@ -58,8 +58,13 @@ def find_latest(url): :param extra: The extra path needed to complete the url """ fetcher = LicenseProtectedFileFetcher() - latesturl = urlparse.urljoin(url, "latest") - latesturl = latesturl + "/" + builddates = fetcher.get(url) + dates = find_builds(builddates) + dates = [int(date) for date in dates] + dates.sort() + lastdate = dates.pop() + lastdate = str(lastdate) + "/" + latesturl = urlparse.urljoin(url, lastdate) content = fetcher.get(latesturl) filename = _get_filename(content) tgz_url = os.path.join(latesturl, filename) |