<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/chunkeey/scripts/download.pl, branch state</title>
<subtitle>Staging tree of Christian Lamparter</subtitle>
<id>https://git.openwrt.org/openwrt/staging/chunkeey/atom?h=state</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/chunkeey/atom?h=state'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/'/>
<updated>2018-05-01T09:12:15Z</updated>
<entry>
<title>download.pl: Change OpenWrt mirrors to HTTPS.</title>
<updated>2018-05-01T09:12:15Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2018-02-20T20:43:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=1ce846580a638bb8a9f9c2571840be65331be38e'/>
<id>urn:sha1:1ce846580a638bb8a9f9c2571840be65331be38e</id>
<content type='text'>
These have supported HTTPS for quite a while. I have not seen any obvious breakage.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>download.pl: Change SourceForge address to HTTPS.</title>
<updated>2018-05-01T09:12:15Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2018-02-20T20:43:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=9ea90209f9ef3a786b34995092e830c50a65ddfd'/>
<id>urn:sha1:9ea90209f9ef3a786b34995092e830c50a65ddfd</id>
<content type='text'>
SourceForge has supported HTTPS for its downloads for a long time now.

I have not been able to see any failures resulting from this change.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: allow skipping of hash verification</title>
<updated>2017-12-14T08:29:31Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2017-12-12T13:55:11Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=f4b9d9d6f13c898d473ce678234339e4a9dba5b2'/>
<id>urn:sha1:f4b9d9d6f13c898d473ce678234339e4a9dba5b2</id>
<content type='text'>
When calling a download target, hash verification is now completely
skipped if we set PKG_HASH=skip.

This allows to easily bump package version:

$ make package/&lt;mypackage&gt;/download PKG_HASH=skip V=s
$ make package/&lt;mypackage&gt;/check FIXUP=1 V=s

This will download the new version of the package, and then automatically
update PKG_HASH with the hash of the new version.  Of course, it is still
the responsibility of the packager to ensure that the new tarball is
legitimate, because it is downloaded from a possibly untrusted source.

Fixes: b30ba14e ("scripts/download.pl: fail loudly if provided hash is unsupported")
Signed-off-by: Baptiste Jonglez &lt;git@bitsofnetworks.org&gt;
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
Acked-by: Stijn Tintel &lt;stijn@linux-ipv6.be&gt;
Signed-off-by: John Crispin &lt;john@phrozen.org&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: fail loudly if provided hash is unsupported</title>
<updated>2017-09-11T15:13:02Z</updated>
<author>
<name>Baptiste Jonglez</name>
</author>
<published>2017-09-03T12:01:28Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=b30ba14e2a858cfebcfdbc38348ab96a6d179556'/>
<id>urn:sha1:b30ba14e2a858cfebcfdbc38348ab96a6d179556</id>
<content type='text'>
Currently, if the provided hash is unsupported (length different from 32
or 64 bytes), we happily download the requested file without any kind of
checksum verification.

This is quite dangerous and may provide a false sense of security, because
a single typo in the hash (e.g. one character deleted by mistake) may skip
checksum verification entirely.

Instead, fail immediately if we don't support the provided hash.
In particular, if an external package repository decides to change the
hash algorithm one day, we will now fail loudly instead of skipping
checksum verification without complaints.

Note: if some users of scripts/download.pl knowingly provide an empty hash
because they don't need checksum verification, this change will break
them.  This does not seem to be the case currently, but if this feature is
ever needed, an option should be added to download.pl instead of relying
on the hash being empty.

Fixes: eaa4eba10a89 ("scripts/download.pl: add SHA-256 support")

Signed-off-by: Baptiste Jonglez &lt;git@bitsofnetworks.org&gt;
</content>
</entry>
<entry>
<title>scripts/dowload.pl: use glob to expand target dir</title>
<updated>2017-08-30T16:12:36Z</updated>
<author>
<name>Zoltan Gyarmati</name>
</author>
<published>2017-08-26T13:14:20Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=0a761fe8ef346c6f0a78097938b083e2d078b0e2'/>
<id>urn:sha1:0a761fe8ef346c6f0a78097938b083e2d078b0e2</id>
<content type='text'>
If CONFIG_DOWNLOAD_FOLDER is set to for example "~/dl", the download
script fails to create the .hash and .dl files with the following
errors:
 Cannot create file ~/dl/dropbear-2017.75.tar.bz2.dl: No such file or directory
 sh: 1: cannot create ~/dl/dropbear-2017.75.tar.bz2.hash: Directory nonexistent

If the tarball already exists in the ~/dl dir, it's properly found and
used, so this issue only affects the download.pl script.
 This patch calls glob() on the target dir parameter, which will expand `~`.

Signed-off-by: Zoltan Gyarmati &lt;mr.zoltan.gyarmati@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: Adjust URLs</title>
<updated>2017-07-21T06:09:45Z</updated>
<author>
<name>Daniel Engberg</name>
</author>
<published>2017-06-25T16:14:33Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=99c429512622566ee2bbde69fa8efb0f2bcda33e'/>
<id>urn:sha1:99c429512622566ee2bbde69fa8efb0f2bcda33e</id>
<content type='text'>
Internet2 isn't considered a trusted issuer meaning that https links to
rit.edu will fail.

The host mirror.csclub.uwaterloo.ca has a trusted SSL cert and peering
is good so it can replace rit.edu without performance issues.

Signed-off-by: Daniel Engberg &lt;daniel.engberg.lists@pyret.net&gt;
[Jo-Philipp Wich: rewrapped commit message]
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: print the command used to download files</title>
<updated>2017-05-25T17:01:07Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2017-05-09T13:20:42Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=cbe0a7ecc0b76f4d97d87ca59a0ff8074b8946f4'/>
<id>urn:sha1:cbe0a7ecc0b76f4d97d87ca59a0ff8074b8946f4</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: fix error message on hash mismatch</title>
<updated>2017-04-04T10:33:37Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2017-04-04T09:44:22Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=2fd15033783a9dfa84d2a43fb81ff222ab865407'/>
<id>urn:sha1:2fd15033783a9dfa84d2a43fb81ff222ab865407</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>download.pl: fix detecting download errors with curl</title>
<updated>2017-01-31T10:24:19Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2017-01-31T10:22:21Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=74c09e714ea36f3d463e0974cd56c32f752a0ad1'/>
<id>urn:sha1:74c09e714ea36f3d463e0974cd56c32f752a0ad1</id>
<content type='text'>
Avoid treating error pages as successfully downloaded content

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>build: use mkhash to replace various quirky md5sum/openssl calls</title>
<updated>2017-01-05T10:09:12Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2016-12-25T15:40:05Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=84bd74057f0d2543ddbc7de2351b0a310df329c6'/>
<id>urn:sha1:84bd74057f0d2543ddbc7de2351b0a310df329c6</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
</feed>
