<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/scripts/download.pl, branch v21.02.3</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v21.02.3</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v21.02.3'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2021-02-24T19:24:09Z</updated>
<entry>
<title>download: remove broken mirrors</title>
<updated>2021-02-24T19:24:09Z</updated>
<author>
<name>David Bauer</name>
</author>
<published>2021-02-20T20:24:11Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=f647d9e6bbf423078f0554ff974fdcf47b21a9ce'/>
<id>urn:sha1:f647d9e6bbf423078f0554ff974fdcf47b21a9ce</id>
<content type='text'>
These mirrors don't exist anymore. Remove them.

Signed-off-by: David Bauer &lt;mail@david-bauer.net&gt;
(cherry picked from commit f04e0074915f03249cdebb460d4dc92875091c63)
</content>
</entry>
<entry>
<title>treewide: unify OpenWrt hosted source via @OPENWRT</title>
<updated>2021-02-05T22:00:24Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-01-30T20:54:44Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=8286f3a3d3a7d65d36ee312c6fd3828d4e4fd048'/>
<id>urn:sha1:8286f3a3d3a7d65d36ee312c6fd3828d4e4fd048</id>
<content type='text'>
Multiple sources are hosted on OpenWrts source server only. The source
URLs to point to the server vary based on different epochs in OpenWrts
history.

Replace all by @OPENWRT which is an "empty" mirror, therefore using the
fallback servers sources.cdn.openwrt.org and sources.openwrt.org.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>scripts: sources CDN as fallback in download.pl</title>
<updated>2021-01-28T08:46:08Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-01-27T04:13:28Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=7521aedff46f731036c09f44859262085c00d303'/>
<id>urn:sha1:7521aedff46f731036c09f44859262085c00d303</id>
<content type='text'>
In case the default sources for a package fail use the CDN rather than
our own mirror. In case the CDN fails, fallback to our mirror.

Also remove mirror1 which isn't available anymore.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>download.pl: properly cleanup intermediate .hash file</title>
<updated>2020-11-27T21:27:08Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2020-11-27T20:56:30Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=52a5d0d27f2557db99fc5435fbd7783b649cb9b2'/>
<id>urn:sha1:52a5d0d27f2557db99fc5435fbd7783b649cb9b2</id>
<content type='text'>
It seems like after a build the /dl dir seems to now contain a .hash
file for each source file due to inproper cleanup so fix it by removing
those intermediate files before leaving the download action.

Fixes: 4e19cbc55335 ("download: handle possibly invalid local tarballs")
Reported-by: Hannu Nyman &lt;hannu.nyman@iki.fi&gt;
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>download: handle possibly invalid local tarballs</title>
<updated>2020-11-27T13:46:13Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2020-11-19T15:32:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=4e19cbc553350b8146985367ba46514cf50e3393'/>
<id>urn:sha1:4e19cbc553350b8146985367ba46514cf50e3393</id>
<content type='text'>
Currently it's assumed, that already downloaded tarballs are always
fine, so no checksum checking is performed and the tarball is used even
if it might be corrupted.

From now on, we're going to always check the downloaded tarballs before
considering them valid.

Steps to reproduce:

 1. Remove cached tarball

   rm dl/libubox-2020-08-06-9e52171d.tar.xz

 2. Download valid tarball again

   make package/libubox/download

 3. Invalidate the tarball

   sed -i 's/PKG_MIRROR_HASH:=../PKG_MIRROR_HASH:=ff/' package/libs/libubox/Makefile

 4. Now compile with corrupt tarball source

   make package/libubox/{clean,compile}

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>scripts: download.pl: retry download using filename</title>
<updated>2020-11-20T01:35:43Z</updated>
<author>
<name>David Bauer</name>
</author>
<published>2020-11-18T15:02:23Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=d36999389890fb952fc7cc8c0db8e1bbb671af12'/>
<id>urn:sha1:d36999389890fb952fc7cc8c0db8e1bbb671af12</id>
<content type='text'>
With this commit, the download script will try downloading source files
using the filename instead of the url-filename in case the previous
download attempt using the url-filename failed.

This is required, as the OpenWrt sources mirrors serve files using the
filename files might be renamed to after downloading. If the original
mirror for a file where url-filename and filename do not match goes
down, the download failed prior to this patch.

Further improvement can be done by performing this only for the
OpenWrt sources mirrors.

Signed-off-by: David Bauer &lt;mail@david-bauer.net&gt;
</content>
</entry>
<entry>
<title>scripts: download.pl: fix indentation</title>
<updated>2020-09-11T15:35:19Z</updated>
<author>
<name>David Bauer</name>
</author>
<published>2020-08-08T22:33:57Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=fe82ea049e521043d88c036ecdda4d2be6a14f1c'/>
<id>urn:sha1:fe82ea049e521043d88c036ecdda4d2be6a14f1c</id>
<content type='text'>
Signed-off-by: David Bauer &lt;mail@david-bauer.net&gt;
</content>
</entry>
<entry>
<title>Revert "scripts/download: add sources CDN as first mirror"</title>
<updated>2020-08-24T13:55:14Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2020-08-24T13:53:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=bf96eb55c82191701030b68810e6f19adbb91eeb'/>
<id>urn:sha1:bf96eb55c82191701030b68810e6f19adbb91eeb</id>
<content type='text'>
This reverts commit c737a9ee6a9c47b6e553ac81bf293b1161e59799.

The source CDN has been discontinued in its current form and will take a
while to be reestablished. Even then it makes little sense to put a CDN
before other CDNs such as kernel.org, apache.org, sourceforge etc.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>scripts/download: add sources CDN as first mirror</title>
<updated>2020-04-14T22:16:55Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2020-04-06T11:53:19Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=c737a9ee6a9c47b6e553ac81bf293b1161e59799'/>
<id>urn:sha1:c737a9ee6a9c47b6e553ac81bf293b1161e59799</id>
<content type='text'>
OpenWrt now has a CDN for sources at sources.cdn.openwrt.org which
mirrors sources.openwrt.org.

Downloading sources outside Europe or US (mainland) could
result in low throughput, extremely slowing down the first compilation of
the build system.

This patch adds sources.cdn.openwrt.org as the first mirror to offer
worldwide fast download speeds by default. If the CDN goes down for
whatever reason, the script jumps to the next available mirror and
downloads requested files as before (in regional varying speed).

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
Acked-by: Eneas U de Queiroz &lt;cotequeiroz@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/dowload.pl: add archive.apache.org to apache mirror list</title>
<updated>2019-12-22T23:21:46Z</updated>
<author>
<name>Jiri Kastner</name>
</author>
<published>2019-11-28T15:29:31Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=dc34c695c4faa46efc6e2367a2ba06a47caa4840'/>
<id>urn:sha1:dc34c695c4faa46efc6e2367a2ba06a47caa4840</id>
<content type='text'>
apache mirrors holds only latest releases, to download
older releases, one must use archive.apache.org to get
them.

Signed-off-by: Jiri Kastner &lt;cz172638@gmail.com&gt;
</content>
</entry>
</feed>
