summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/download.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sb: Add sb-rtems-pkg to update the RTEMS package hashes and checksumsChris Johns2024-04-041-1/+4
|
* sb: Allow _ in downloaded file namesChris Johns2023-12-071-2/+2
|
* sb: No hash on a package is an errorChris Johns2023-11-301-3/+1
|
* sb: Use shebang env pythonChris Johns2020-08-251-7/+7
| | | | Closes #4037
* sb: Add git clean to the supported git commands.Chris Johns2020-05-081-0/+9
|
* sb: Add support for a comma separated release path list.Chris Johns2019-11-181-15/+17
| | | | Updates #3814
* sb/download: Add support for a base64 hash stringChris Johns2019-08-271-2/+8
|
* The libexpat project has moved to github. Fetch expat from github.Chris Johns2018-03-051-1/+1
| | | | Close #3315
* sb: Remove MD5 and SHA1 as they not secure.Chris Johns2017-10-121-0/+2
| | | | Updates #2536.
* sb/download: Fix --rsb-file options with released sources.Chris Johns2017-07-121-2/+6
| | | | | | | The released sources use the local file name so always force it when the RSB is released. Closes #3064.
* sb: Restrict file name lengthSebastian Huber2017-06-081-0/+4
|
* sb: Create hopefully more valid file namesSebastian Huber2017-06-061-5/+3
|
* sb: Add the `release_path` key to the `version` section in the VERSION file.Chris Johns2017-03-261-1/+6
| | | | | | A release can specify a custom releaase URL path. Closes #2952.
* sb: Add --rsb-file options to %source and %patch to set a file name.Chris Johns2016-04-151-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.
* sb: Make the URL output truncate on long long URLs.Chris Johns2016-03-181-6/+3
|
* sb: Fix the sensible url printer on Python3.Chris Johns2016-03-171-2/+5
| | | | Updates #2656.
* sb: Change urlib to urllib2 on Python2 and add user agent support.Chris Johns2016-03-171-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.
* bare/devel/qemu: Fix the release URL logic and pkconfig python3 issues.Chris Johns2016-03-161-2/+8
| | | | Closes #2645.
* sb: Update download to check the config file for release URL control.Chris Johns2016-03-141-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.
* sb: Fix --without-release-url logic.Chris Johns2016-03-101-2/+2
| | | | Updates #2636.
* sb: Add a download option --with-release-url/--without-release-url.Chris Johns2016-03-101-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.
* sb: Fix typo on the urlparse name in download.pyChris Johns2016-03-101-1/+1
| | | | Updates #2619.
* sb: Download's urllib_parse should point to urlparse on Python2.Chris Johns2016-03-101-3/+1
| | | | Updates #2619.
* sb: Update code base to support Python3 and Python2.Chris Johns2016-03-071-16/+25
| | | | | | Fix Windows support to allow MSYS2 Python to be used. Updates #2619.
* sb: Remove http query flags from the file name if present.Chris Johns2016-02-291-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.
* Download source from RTEMS if a release.Chris Johns2015-12-141-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.
* Generate an error if there is no hash when released.Chris Johns2015-12-111-0/+3
|
* sb: Fix the downloader file:// URL to copy the file to the local path.Chris Johns2015-06-161-5/+7
|
* sb: Update the downloader for 2.7.8 and earlier without a context.Chris Johns2015-03-301-2/+4
|
* sb: Provide an unverified SSL context to the URL.Chris Johns2015-03-291-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).
* Add merge to the git and download modules to merge after a fetch.Chris Johns2015-03-181-4/+8
| | | | Update the RTEMS tools and newlib-git to merge after the fetch.
* Add options support for --with/--without processing. Add --with-download ↵Chris Johns2015-02-181-30/+101
| | | | | | | | support. You can now test downloading by using --dry-run and --with-download. Print the redirect if one is taken.
* Windows native build fixes.Chris Johns2015-02-071-2/+7
| | | | The testing of building on Windows is done using MSYS2.
* sb: Add support for the standard git protocols for the %source command.Chris Johns2014-08-291-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.
* Fix bug of uncompressing zip files.Hesham ALMatary2014-08-291-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.
* sb: Fix sources related bugs.Chris Johns2014-08-121-0/+1
| | | | | Updates the sources module introduced bugs in the build and download modules. The commit fixes those modules.
* sb: Add support to get sources and hashses.Chris Johns2014-08-091-2/+2
|
* sb: Fix using hashlib's algorithms on python earlier than 2.7.Chris Johns2014-08-041-1/+5
|
* Add checksum support for downloaded files.Chris Johns2014-07-291-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.
* sb: Add visual feedback for http type downloads.Chris Johns2014-07-291-4/+54
|
* sb: Fix error handling.Chris Johns2014-07-251-1/+1
|
* sb: Implement %source and %patch to manage source and patches.Chris Johns2014-05-131-0/+7
| | | | | | Remove the numbered source and patches and automatically manage sources and patches. This removes the overhead in maintaining large collections of patches.
* sb: Fix git to clean before updating.Chris Johns2014-03-261-0/+1
|
* sb: Add patchworks support via the pw://... URL.Chris Johns2014-02-121-1/+9
|
* sb: Fix downloader url parsing and add submodule git support.Chris Johns2014-02-041-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.
* Do not run any download type functions if performing a dry-run.Chris Johns2013-04-291-5/+5
|
* Change the CVS download path to include the module and tag/date.Chris Johns2013-04-251-4/+26
|
* Fixes for CVS to work. Add RTEMS build for sparc/sis.Chris Johns2013-04-221-4/+10
|
* Fix CVS downloads.Chris Johns2013-04-211-1/+6
|
* Refactor the logging support.Chris Johns2013-04-211-29/+17
|