diff options
author | Chris Johns <chrisj@rtems.org> | 2017-03-26 13:19:18 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2017-03-26 13:19:18 +1100 |
commit | dca7ab285321d788f3f7f419ef8f2f4d3cf77a12 (patch) | |
tree | 66b2c156fccb5c8618c1b7a1f5c0b62e41c4290b /source-builder/sb/download.py | |
parent | 4.11: ARM: Optimize IEEE-754 sqrt implementation (diff) | |
download | rtems-source-builder-dca7ab285321d788f3f7f419ef8f2f4d3cf77a12.tar.bz2 |
sb: Add the `release_path` key to the `version` section in the VERSION file.
A release can specify a custom releaase URL path.
Closes #2952.
Diffstat (limited to 'source-builder/sb/download.py')
-rw-r--r-- | source-builder/sb/download.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source-builder/sb/download.py b/source-builder/sb/download.py index 1bd132e..c9cb792 100644 --- a/source-builder/sb/download.py +++ b/source-builder/sb/download.py @@ -296,6 +296,11 @@ parsers = { 'http': _http_parser, 'cvs': _cvs_parser, 'file': _file_parser } +def set_release_path(release_path, macros): + if release_path is None: + release_path = '%{rtems_release_url}/%{rsb_version}/sources' + macros.define('release_path', release_path) + def parse_url(url, pathkey, config, opts): # # Split the source up into the parts we need. @@ -575,7 +580,7 @@ def get_file(url, local, opts, config): # url_bases = opts.urls() try: - rtems_release_url_value = config.macros.expand('%{rtems_release_url}/%{rsb_version}/sources') + rtems_release_url_value = config.macros.expand('%{release_path}') except: rtems_release_url_value = None log.output('RTEMS release URL could not be expanded') |