immortalwrt-VIKINGYFY/scripts
Michael Pratt 685fc753a7 download: add support for gitweb snapshots
When downloading a snapshot archive from gitweb,
the filename is not part of the URL,
and adding the filename to the URL causes errors.

The gitweb API exclusively uses query parameters
instead of paths in order to execute snapshot downloads.

Add a condition to the Perl download script
that removes the filename if the relevant
query parameter matches in the URL.

Also, to reduce server load of the original sources
try the Openwrt CDN servers first for these downloads.

Even though snapshot downloads are not ideal
due to the impact on the source's server health,
they are better for download performance than using git only.
Therefore, attempting it last will reduce the impact
and thus encourage maintainers to keep the option enabled.

This change is partly inspired by a conversation linked below
about snapshot downloads and server performance issues
which led to the feature being disabled for a particular server.

Link: https://lists.gnu.org/archive/html/bug-gnulib/2024-12/msg00124.html
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/16522
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-07-26 14:38:08 +02:00
..
config treewide: strip trailing whitespace 2025-05-20 00:47:37 +02:00
flashing
belkin-header.py
brcmImage.pl
bundle-libraries.sh
cameo-imghdr.py
cameo-tag.py
cfe-bin-header.py
cfe-partition-tag.py
cfe-wfi-tag.py
check-toolchain-clean.sh
checkpatch.pl
clean-package.sh
cleanfile
cleanpatch
combined-ext-image.sh
combined-image.sh
command_all.sh
config.guess
config.rpath
config.sub
const_structs.checkpatch
deptest.sh
diffconfig.sh
dl_cleanup.py
dl_github_archive.py
download-check-artifact.sh
download.pl download: add support for gitweb snapshots 2025-07-26 14:38:08 +02:00
dump-target-info.pl
env
ext-toolchain.sh scripts/ext-toolchain: adjust with recent glibc 2025-07-12 23:38:19 +02:00
ext-tools.sh
feeds
fixup-makefile.pl
functions.sh
gen_image_generic.sh
gen-dependencies.sh
get_source_date_epoch.sh
getver.sh scripts: getver.sh: approximate version from date 2025-06-26 10:29:50 +02:00
ipkg-build
ipkg-make-index.sh
ipkg-remove build: fix ipkg-remove: add support for removing apk files 2025-07-15 20:48:45 +02:00
json_add_image_info.py build: include size-limits to device-metadata 2025-04-18 14:00:39 +02:00
json_overview_image_info.py
kconfig-reorder.sh
kconfig.pl
kernel_bump.sh Note inspiration for this script to give credit where it's due 2025-07-21 16:17:29 +01:00
linksys-image.sh
make-index-json.py imagebuilder: implement STRIP_ABI option for manifest target 2025-07-03 12:45:59 +02:00
make-ipkg-dir.sh
md5sum
metadata.pm
mkhash.c
mkits-qsdk-ipq-image.sh qualcommax: ipq50xx: add support for GL.iNET GL-B3000 2025-04-20 16:11:29 +02:00
mkits-zyxel-fit-filogic.sh
mkits-zyxel-fit.sh
mkits.sh
moxa-encode-fw.py
netgear-encrypted-factory.py
noop.sh
om-fwupgradecfg-gen.sh
package-metadata.pl
pad_image
patch-kernel.sh
patch-specs.sh
portable_date.sh
projectsmirrors.json projectsmirrors: remove kernel mirror ftp.riken.jp 2025-07-26 01:05:44 +02:00
qemustart
redboot-script.pl
relink-lib.sh
remote-gdb
rstrip.sh
sercomm-crypto.py
sercomm-kernel-header.py
sercomm-partition-tag.py
sercomm-payload.py
sercomm-pid.py
sign_images.sh
size_compare.sh
slugimage.pl
spelling.txt
srecimage.pl
strip-kmod.sh
symlink-tree.sh
sysupgrade-tar.sh build: add dtb support for sysupgrade-tar 2025-06-22 22:17:20 +02:00
target-metadata.pl targets: add USES_PM auto-feature 2025-07-20 12:16:13 +01:00
time.pl
timestamp.pl
tplink-mkimage-2022.py qualcommax: ipq807x: Create working factory images for EAP620 HD v1 and EAP660 HD v1 2025-03-27 17:42:04 +01:00
ubinize-image.sh
xxdi.pl