summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/download.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-04-04sb: Add sb-rtems-pkg to update the RTEMS package hashes and checksumsChris Johns1-1/+4
2023-12-07sb: Allow _ in downloaded file namesChris Johns1-2/+2
2023-11-30sb: No hash on a package is an errorChris Johns1-3/+1
2020-08-25sb: Use shebang env pythonChris Johns1-7/+7
Closes #4037
2020-05-08sb: Add git clean to the supported git commands.Chris Johns1-0/+9
2019-11-18sb: Add support for a comma separated release path list.Chris Johns1-15/+17
Updates #3814
2019-08-27sb/download: Add support for a base64 hash stringChris Johns1-2/+8
2018-03-05The libexpat project has moved to github. Fetch expat from github.Chris Johns1-1/+1
Close #3315
2017-10-12sb: Remove MD5 and SHA1 as they not secure.Chris Johns1-0/+2
Updates #2536.
2017-07-12sb/download: Fix --rsb-file options with released sources.Chris Johns1-2/+6
The released sources use the local file name so always force it when the RSB is released. Closes #3064.
2017-06-08sb: Restrict file name lengthSebastian Huber1-0/+4
2017-06-06sb: Create hopefully more valid file namesSebastian Huber1-5/+3
2017-03-26sb: Add the `release_path` key to the `version` section in the VERSION file.Chris Johns1-1/+6
A release can specify a custom releaase URL path. Closes #2952.
2016-04-15sb: Add --rsb-file options to %source and %patch to set a file name.Chris Johns1-42/+58
Override the automatic file name of a downloaded file and use the file name provided by the option. This is useful if the URL has no meanful file that can be automatically extracted from the URL.
2016-03-18sb: Make the URL output truncate on long long URLs.Chris Johns1-6/+3
2016-03-17sb: Fix the sensible url printer on Python3.Chris Johns1-2/+5
Updates #2656.
2016-03-17sb: Change urlib to urllib2 on Python2 and add user agent support.Chris Johns1-11/+24
Some sites block the standard python user agent. Change to Wget as it seems to make the tested sites behave. Limit the size of long URLs when logging to the user. Closes #2656.
2016-03-16bare/devel/qemu: Fix the release URL logic and pkconfig python3 issues.Chris Johns1-2/+8
Closes #2645.
2016-03-14sb: Update download to check the config file for release URL control.Chris Johns1-0/+3
Provide without_release_url support in the configuration file so the release tarball download of the kernel and tools uses the release's top level directory and not the sources directory. Closes #2481.
2016-03-10sb: Fix --without-release-url logic.Chris Johns1-2/+2
Updates #2636.
2016-03-10sb: Add a download option --with-release-url/--without-release-url.Chris Johns1-8/+22
The default without the option is to prepend the release URL to the URL list to download from the RTEMS FTP site first if the RSB is released. This option can force the RTEMS FTP to be tried first when not a release, or you can supply a different URL to download from or you can request no RTEMS URL is tried first. Eg: --with-release-url --with-release-url=file://opt/local/cache --without-release-url Move the RTEMS release URL to the default.mc file. Change the URL to the RTEMS FTP server and do not use the https method of access. The option's with_arg call was cleaned up to make sense. Remove the log's raw output of an extra space. Some download error message formating was cleaned up. Closes #2636.
2016-03-10sb: Fix typo on the urlparse name in download.pyChris Johns1-1/+1
Updates #2619.
2016-03-10sb: Download's urllib_parse should point to urlparse on Python2.Chris Johns1-3/+1
Updates #2619.
2016-03-07sb: Update code base to support Python3 and Python2.Chris Johns1-16/+25
Fix Windows support to allow MSYS2 Python to be used. Updates #2619.
2016-02-29sb: Remove http query flags from the file name if present.Chris Johns1-1/+8
The query flags such as '?h=4.11' to select a branch cannot appear in the file name on Windows. This patch removes the query part from the file name. Update #2616.
2015-12-14Download source from RTEMS if a release.Chris Johns1-12/+35
Download source from ftp.rtems.org before the package's URL if a release. If a user adds a URL via the command line that is used then the RTEMS release path then the package's URL. A user can add --url=file://path/../morepath to have the RSB use a local cache of source on their hard disk. This is useful if you need to wipe the RSB and start again. Save away the 'sources' and 'patches' directories to a common directory and provide it with via the --url option using the 'file://' prefix. Closes #2482.
2015-12-11Generate an error if there is no hash when released.Chris Johns1-0/+3
2015-06-16sb: Fix the downloader file:// URL to copy the file to the local path.Chris Johns1-5/+7
2015-03-30sb: Update the downloader for 2.7.8 and earlier without a context.Chris Johns1-2/+4
2015-03-29sb: Provide an unverified SSL context to the URL.Chris Johns1-1/+7
The RTEMS servers are causing an exception when downloading patches. The solution is provided in PEP-0476 (https://www.python.org/dev/peps/pep-0476/#opting-out).
2015-03-18Add merge to the git and download modules to merge after a fetch.Chris Johns1-4/+8
Update the RTEMS tools and newlib-git to merge after the fetch.
2015-02-18Add options support for --with/--without processing. Add --with-download ↵Chris Johns1-30/+101
support. You can now test downloading by using --dry-run and --with-download. Print the redirect if one is taken.
2015-02-07Windows native build fixes.Chris Johns1-2/+7
The testing of building on Windows is done using MSYS2.
2014-08-29sb: Add support for the standard git protocols for the %source command.Chris Johns1-2/+24
The source selector 'git://' now supports a protocol option that lets you set the specific protocol git is to use to access a remote repository.
2014-08-29Fix bug of uncompressing zip files.Hesham ALMatary1-1/+1
This patch uses __unzip macro for uncompressing zip files instead of the wrong __zip macro which is not defined in defaults.mc file.
2014-08-12sb: Fix sources related bugs.Chris Johns1-0/+1
Updates the sources module introduced bugs in the build and download modules. The commit fixes those modules.
2014-08-09sb: Add support to get sources and hashses.Chris Johns1-2/+2
2014-08-04sb: Fix using hashlib's algorithms on python earlier than 2.7.Chris Johns1-1/+5
2014-07-29Add checksum support for downloaded files.Chris Johns1-0/+45
File download by http, ftp, pw support checksum. The %hash directive provides a means of setting a hash used to checksum the file. Files on disk or just downloaded are checked.
2014-07-29sb: Add visual feedback for http type downloads.Chris Johns1-4/+54
2014-07-25sb: Fix error handling.Chris Johns1-1/+1
2014-05-13sb: Implement %source and %patch to manage source and patches.Chris Johns1-0/+7
Remove the numbered source and patches and automatically manage sources and patches. This removes the overhead in maintaining large collections of patches.
2014-03-26sb: Fix git to clean before updating.Chris Johns1-0/+1
2014-02-12sb: Add patchworks support via the pw://... URL.Chris Johns1-1/+9
2014-02-04sb: Fix downloader url parsing and add submodule git support.Chris Johns1-8/+19
Split the URL by line breaks into separate requests. With git reset the repo with each run. First perform a hard reset to remove any local patches and then switch back to master incase the repo was left on a branch or a detached head.
2013-04-29Do not run any download type functions if performing a dry-run.Chris Johns1-5/+5
2013-04-25Change the CVS download path to include the module and tag/date.Chris Johns1-4/+26
2013-04-22Fixes for CVS to work. Add RTEMS build for sparc/sis.Chris Johns1-4/+10
2013-04-21Fix CVS downloads.Chris Johns1-1/+6
2013-04-21Refactor the logging support.Chris Johns1-29/+17