aboutsummaryrefslogtreecommitdiff
path: root/scripts/dl_github_archive.py
Commit message (Collapse)AuthorAge
* scripts/dl_github_archive: use tar -I for ZSTDRobert Marko2024-04-09
| | | | | | | | | | | Instead of relying on env variables for setting the ZSTD compression configuration we can simply do what we do for IB, SDK and the rest and use tar -I to pass "zstd -T0 --ultra -20" directly. This makes it rather clear what is being done and allows to drop the zstd CLI max level override as its usually capped at level 19. Signed-off-by: Robert Marko <robimarko@gmail.com>
* scripts/dl_github_archive: add support for packing zstd archiveChristian Marangi2024-04-06
| | | | | | Add support for packing .zst archive when creating Github mirror tar. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* build: make git sub-modules to fetch configurableKarsten Sperling2023-07-28
| | | | | | | | | | | | | Currently the git protocol downloads all submodules of the target repository. This can be unwieldy for repositories with a lot of submodules where only a subset are required in the context of the OpenWrt build. This change adds a PKG_SOURCE_SUBMODULES variable to configure this behavior. It takes a space-separated list of submodule paths, or the word "skip" to disable submodule downloads entirely. The default is to download all submodules, i.e. preserving current behavior. Signed-off-by: Karsten Sperling <ksperling@apple.com>
* scripts/dl_github_archieve.py: fix generating unreproducible tarChristian Marangi2023-01-12
| | | | | | | | | | | | | | | Allign dl_github_archieve.py to 8252511dc0b5a71e9e64b96f233a27ad73e28b7f change. On supported system the sigid bit is applied to files and tar archieve that on tar creation. This cause unreproducible tar for these system and these bit should be dropped to produce reproducible tar. Add the missing option following the command options used in other scripts. Fixes: 75ab064d2b38 ("build: download code from github using archive API") Suggested-by: Eneas U de Queiroz <cotequeiroz@gmail.com> Tested-by: Robert Marko <robimarko@gmail.com> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* scripts: fix various typosJosh Soref2021-10-31
| | | | | | | | | This only affects typos in comments or user-facing output. Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> [only picks changes to scripts, drop "commandline" replacement, fix case for "arbitrary", improve commit message] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* scripts/dl_github_archive.py: fix python3 str, bytes confusionYousong Zhou2019-11-04
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* scripts/dl_github_archive.py: fix python3 transitionYousong Zhou2019-08-20
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* scripts/dl_github_archive.py: convert to Python 3 with 2-to-3Petr Štetiar2019-07-26
| | | | | | Let's convert the script to Python 3. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* scripts/dl_github_archive.py: stringify exceptionYousong Zhou2018-07-17
| | | | | | Closes openwrt/openwrt#1163 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* scripts/dl_github_archive.py: rename from download.pyYousong Zhou2018-07-05
- Make the code more GitHub-specific - Requires mirror hash to work with .gitattributes - Use different API depending on whether PKG_SOURCE_VERSION is a complete commit id or other ref types like tags - Fix removing symbolic link - pre-clean dir_untar for possible leftovers from previous run Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>