<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/stintel/scripts/download.pl, branch master</title>
<subtitle>Staging tree of Stijn Tintel</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/stintel/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/stintel/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/stintel/'/>
<updated>2025-11-15T14:47:23Z</updated>
<entry>
<title>download: use reasonable timeout and retry parameters</title>
<updated>2025-11-15T14:47:23Z</updated>
<author>
<name>Andy Chiang</name>
</author>
<published>2025-11-15T13:19:02Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/stintel/commit/?id=337557a158a604f7b4eadf9044f4a0e7b514bb1d'/>
<id>urn:sha1:337557a158a604f7b4eadf9044f4a0e7b514bb1d</id>
<content type='text'>
Set a timeout of 5 seconds and 3 retries to reduce the time it takes for connection timeout.

Signed-off-by: Andy Chiang &lt;AndyChiang_git@outlook.com&gt;
Link: https://github.com/openwrt/openwrt/pull/19977
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>download: add support for gitweb snapshots</title>
<updated>2025-07-26T12:38:08Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2025-05-31T18:00:45Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/stintel/commit/?id=685fc753a7fd0e87cf61204620348ec0b40ba426'/>
<id>urn:sha1:685fc753a7fd0e87cf61204620348ec0b40ba426</id>
<content type='text'>
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 &lt;mcpratt@pm.me&gt;
Link: https://github.com/openwrt/openwrt/pull/16522
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>Revert "scripts/download.pl: read file natively"</title>
<updated>2024-10-27T14:58:16Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-10-27T14:58:16Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/stintel/commit/?id=07159cc25a5b5934e6eeb48409d8e846d797b0fa'/>
<id>urn:sha1:07159cc25a5b5934e6eeb48409d8e846d797b0fa</id>
<content type='text'>
This reverts commit 65560de58de7a3cde8f960849e3c7c640b9456d8.

Seems to broke CI and require more testing.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: read file natively</title>
<updated>2024-10-27T13:24:32Z</updated>
<author>
<name>Matteo Croce</name>
</author>
<published>2024-09-28T23:01:01Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/stintel/commit/?id=65560de58de7a3cde8f960849e3c7c640b9456d8'/>
<id>urn:sha1:65560de58de7a3cde8f960849e3c7c640b9456d8</id>
<content type='text'>
Read files natively instead of execing /bin/cat.

Signed-off-by: Matteo Croce &lt;teknoraver@meta.com&gt;
Link: https://github.com/openwrt/openwrt/pull/16784
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: use perl builtins instead of system()</title>
<updated>2024-10-12T19:59:15Z</updated>
<author>
<name>Matteo Croce</name>
</author>
<published>2024-09-28T22:41:23Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/stintel/commit/?id=6e40f982082a60b9788cf5e0360142a23180fbfa'/>
<id>urn:sha1:6e40f982082a60b9788cf5e0360142a23180fbfa</id>
<content type='text'>
Perl natively supports renaming files and create directories.
Do it without calling system().

Signed-off-by: Matteo Croce &lt;teknoraver@meta.com&gt;
Link: https://github.com/openwrt/openwrt/pull/16542
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: fix broken link for KERNEL projects</title>
<updated>2024-06-19T12:30:06Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-06-19T12:30:06Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/stintel/commit/?id=3b83d393ddcd09e9ceb6ce04559d8f4a697f817f'/>
<id>urn:sha1:3b83d393ddcd09e9ceb6ce04559d8f4a697f817f</id>
<content type='text'>
Fix broken link generation for KERNEL projects.

Using $1 in projectsmirrors sub was still referencing the caller $1
instead of the remaining args of projectsmirrors sub.

Use shift and put the second arg of projectsmirrors sub in $append to
correctly handle the sub args.

Fixes: 465cf358881c ("scripts/download.pl: detach mirror URLs from script file")
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: detach mirror URLs from script file</title>
<updated>2024-06-18T17:51:45Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-06-18T14:09:30Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/stintel/commit/?id=465cf358881cfad1293669f235a62e9f31539521'/>
<id>urn:sha1:465cf358881cfad1293669f235a62e9f31539521</id>
<content type='text'>
Detach URL from download script to make it easier to change and update
the URLs.

The mirror list is moved to a JSON file in the scripts directory called
projectsmirrors.json.

Link: https://github.com/openwrt/openwrt/pull/15745
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts: Add GNU ftp mirror redirector for GNU and Savannah</title>
<updated>2024-05-29T09:19:08Z</updated>
<author>
<name>Sahil Dhiman</name>
</author>
<published>2024-05-25T09:57:12Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/stintel/commit/?id=6510eb3b5d612ea7a70c4a8d9b83639e3b46e221'/>
<id>urn:sha1:6510eb3b5d612ea7a70c4a8d9b83639e3b46e221</id>
<content type='text'>
Add GNU's redirector which automatically redirect user to nearby online
mirror.

Signed-off-by: Sahil Dhiman &lt;sahil@hopbox.in&gt;
Link: https://github.com/openwrt/openwrt/pull/15557
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: Remove stale download sites and convert to https</title>
<updated>2023-09-16T10:10:22Z</updated>
<author>
<name>Hannu Nyman</name>
</author>
<published>2023-09-13T13:49:03Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/stintel/commit/?id=e39fd02347d0a38e411acced93d4aca4aa0a724d'/>
<id>urn:sha1:e39fd02347d0a38e411acced93d4aca4aa0a724d</id>
<content type='text'>
Remove the stale site definitions from @APACHE, KERNEL etc.

* Remove site that had dropped APACHE
* Remove KERNEL site leading to wrong directory
* Remove dead sites
* Convert ftp/http URLs to https, if possible. Remove duplicate

Signed-off-by: Hannu Nyman &lt;hannu.nyman@iki.fi&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: remove stale GNOME download sites</title>
<updated>2023-09-01T21:09:43Z</updated>
<author>
<name>Hannu Nyman</name>
</author>
<published>2023-09-01T15:56:49Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/stintel/commit/?id=402212c3b0475a220e7581ccef577c05eee640a3'/>
<id>urn:sha1:402212c3b0475a220e7581ccef577c05eee640a3</id>
<content type='text'>
Remove stale sites from @GNOME alias:
* remove 2 sites that have stale 3 years old content
* remove 2 sites that have dropped GNOME
* convert 2 sites from FTP to HTTP

Signed-off-by: Hannu Nyman &lt;hannu.nyman@iki.fi&gt;
</content>
</entry>
</feed>
