mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Add signed torrents for compilers to Git and improve download logic (#1685)
* Add signed torrents for compilers to Git and improve download logic [AR-107]
This commit is contained in:
@@ -0,0 +1 @@
|
||||
c7e2ae4fd6a66df642d59e8453775b4c gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
c7e2ae4fd6a66df642d59e8453775b4c
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
650dc30f7e937fa12e37ea70ff6e10dd gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
650dc30f7e937fa12e37ea70ff6e10dd
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
631c4c7b1fe9cb115cf51bd6a926acb7 gcc-linaro-4.9.4-2017.01-x86_64_aarch64-linux-gnu.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
631c4c7b1fe9cb115cf51bd6a926acb7
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
7d409a976ac5bb68fe52b9c1dc503734 gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabi.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
7d409a976ac5bb68fe52b9c1dc503734
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
545af35e13c439cc156dc0881d976463 gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
545af35e13c439cc156dc0881d976463
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
641f6a790c26bda22c0aaa6fb44f8775 gcc-linaro-5.5.0-2017.10-x86_64_aarch64-linux-gnu.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
641f6a790c26bda22c0aaa6fb44f8775
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
1227e9b54d19d60598fff569931e0dc1 gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabi.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
1227e9b54d19d60598fff569931e0dc1
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
ed69bd409634f289a09f557849a9e640 gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
ed69bd409634f289a09f557849a9e640
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
31d591c7bbd06ae31385bcdfd37ab702 gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
31d591c7bbd06ae31385bcdfd37ab702
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
2516836285aa814bdcd46a328ffd9603 gcc-linaro-6.4.1-2017.11-x86_64_aarch64-linux-gnu.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
2516836285aa814bdcd46a328ffd9603
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
7c80d2ca5544abcf750f8ca608284a2f gcc-linaro-6.4.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
7c80d2ca5544abcf750f8ca608284a2f
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
e0473e9589aa87d0b3028ea203b79d18 gcc-linaro-7.1.1-2017.08-x86_64_aarch64-linux-gnu.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
e0473e9589aa87d0b3028ea203b79d18
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
7cf68fac108f86dfc842a601189151d5 gcc-linaro-7.1.1-2017.08-x86_64_arm-linux-gnueabihf.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
7cf68fac108f86dfc842a601189151d5
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
74451220ef91369da0b6e2b7534b0767 gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
74451220ef91369da0b6e2b7534b0767
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
9a4a39cfc78c84375b1160aa93587aed gcc-linaro-7.2.1-2017.11-x86_64_arm-eabi.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
9a4a39cfc78c84375b1160aa93587aed
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
b8429fe715458a88632f9d936ff52c6a gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
b8429fe715458a88632f9d936ff52c6a
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
6ec789d642584a01e240ab3366599dbb gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
6ec789d642584a01e240ab3366599dbb
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
10abbdce277e5b7d4d064d66a20ddb61 gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabi.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
10abbdce277e5b7d4d064d66a20ddb61
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
de0ede807c5b1cbea667ff9f02c822cd gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
de0ede807c5b1cbea667ff9f02c822cd
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
0a8e5b7b67d713ece5fe24b120393b03 gcc-linaro-7.4.1-2019.02-x86_64_arm-eabi.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
0a8e5b7b67d713ece5fe24b120393b03
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
cca54e76e3d28568b891bf4b6c69e613 gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabi.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
cca54e76e3d28568b891bf4b6c69e613
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
39446fed5ea8b6458cf66c12a4b88d7e gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf.tar.xz
|
||||
@@ -0,0 +1 @@
|
||||
39446fed5ea8b6458cf66c12a4b88d7e
|
||||
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v1.4.10 (GNU/Linux)
|
||||
|
||||
iQEcBAABAgAGBQJSiyiTAAoJENR4d4CPQn6vqsgH/jt36qr3iXVB7ALzr5Vb6Cgh
|
||||
B3C69RZeQ+Vt9z8mnwVW7roW9UglS1ydQ5J04bnPWGD6OYTUaDimbHiYnEB6+30L
|
||||
lmXEop10/SXgayjI4NdJYQGA3+6RFBTiUd1052bNxuFtS/gl2RCll3mTs0mZ5McQ
|
||||
U8tkoDnQZhbFlJOGz8L8jlSXR8vJU1OsjpEW19HwzgLUBaIL8LwrIvNTnG1kA0Io
|
||||
qsdF7rHhk/johUiZ2MHOU6xQiqDZwgGyKo8kbybIGke1bKf9J6Fxfsh21v0UfCur
|
||||
xkgY4K4X1CJ3BuQLH9V+XIhT8b4kwOM9N3Xjkb66ACNIkIPMLtuQYTU4z5m2fZI=
|
||||
=/uv7
|
||||
-----END PGP SIGNATURE-----
|
||||
@@ -0,0 +1 @@
|
||||
5fd777bee04a79435a0861efd473ec0e
|
||||
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v1.4.10 (GNU/Linux)
|
||||
|
||||
iQEcBAABAgAGBQJTTsv6AAoJENR4d4CPQn6vXbMH/0QzwN2RAIjWAqgWn4uFCLBa
|
||||
ku5CcOhJV5qtudWHTnQK7cK01v8cA2XugdbS4rGYERvndFPB2PicphIXDaV9TLEq
|
||||
fNF+PypYJlxGy0Rg2QDMgFSNnid7fIEssW9YDQw2PayPbMNMrdGrLC2flUIHAKh/
|
||||
H5IUu8sm3Om6V6wd/XUgFoWR1iPRVl4FZW6QwMR1QJgF5XiJWkVyDGNj50ujJSIr
|
||||
judQQH0TM2Pf3Du1GoK8KHgAZqw34oE+fVVNUuM+JwDsL6677O78o26yrU0pcEBh
|
||||
JnBCp+kl6ILqg7V1C6bqTI8ZgkZUAabUtovlG4xncBqRsRa8DZ66Ehs+puTq1Gg=
|
||||
=Ekwd
|
||||
-----END PGP SIGNATURE-----
|
||||
@@ -0,0 +1 @@
|
||||
44fbcca1478e477916bdf6a03b6ab85a
|
||||
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v1.4.10 (GNU/Linux)
|
||||
|
||||
iQEcBAABAgAGBQJTT3TYAAoJENR4d4CPQn6vASIH/1HFClg6/DafrluVyvRL1sVd
|
||||
DyPW9DaKO4LmB2e/vTfUt7VbolLZ9smRB9ZerlWZGyKbm/GkzzZo2S1zpcew8wM8
|
||||
8owiljK2/Jx6eLcM34a/7+3eF8INIsxkzdtNJlkNAPxzo2lOfInmioXuMlxpNRkO
|
||||
B60e8laZGmbJJ2i3vABIW/7STjJKnSDsIbYy21RN/i5rBydLoZkT5l0JzPbetqoK
|
||||
AZHRdWvZAJZ3RN5BswomJnRtvjGtqOP4Jod3/IhhG2W5jlhQ9y9b/ZavD8pIwGNG
|
||||
nX0dZylh8ZVaaz/hOlfBO9YLf5oS/SOe3kQuSjSoAh+tN1PSZkZ3T1QEmkyEvn8=
|
||||
=5QiB
|
||||
-----END PGP SIGNATURE-----
|
||||
@@ -0,0 +1 @@
|
||||
12d6e8a0cbd2d8e130cc8f55389a95c3
|
||||
Binary file not shown.
@@ -919,30 +919,39 @@ download_and_verify()
|
||||
local localdir=$SRC/cache/${remotedir//_}
|
||||
local dirname=${filename//.tar.xz}
|
||||
|
||||
if [[ $DOWNLOAD_MIRROR == china ]]; then
|
||||
local server="https://mirrors.tuna.tsinghua.edu.cn/armbian-releases/"
|
||||
else
|
||||
local server="https://dl.armbian.com/"
|
||||
fi
|
||||
|
||||
if [[ -f ${localdir}/${dirname}/.download-complete ]]; then
|
||||
return
|
||||
fi
|
||||
|
||||
cd ${localdir}
|
||||
|
||||
# download control file
|
||||
if [[ ! `wget -S --spider https://dl.armbian.com/$remotedir/${filename}.asc 2>&1 >/dev/null | grep 'HTTP/1.1 200 OK'` ]]; then
|
||||
# use local control file
|
||||
if [[ -f $SRC/config/torrents/${filename}.asc ]]; then
|
||||
local torrent=$SRC/config/torrents/${filename}.torrent
|
||||
ln -s $SRC/config/torrents/${filename}.asc ${localdir}/${filename}.asc
|
||||
elif [[ ! `wget -S --spider ${server}${remotedir}/${filename}.asc 2>&1 >/dev/null | grep 'HTTP/1.1 200 OK'` ]]; then
|
||||
return
|
||||
else
|
||||
# download control file
|
||||
local torrent=${server}torrent/${filename}.torrent
|
||||
aria2c --download-result=hide --disable-ipv6=true --summary-interval=0 --console-log-level=error --auto-file-renaming=false \
|
||||
--continue=false --allow-overwrite=true --dir=${localdir} $(webseed "$remotedir/${filename}.asc") -o "${filename}.asc"
|
||||
[[ $? -ne 0 ]] && display_alert "Failed to download control file" "" "wrn"
|
||||
fi
|
||||
|
||||
aria2c --download-result=hide --disable-ipv6=true --summary-interval=0 --console-log-level=error --auto-file-renaming=false \
|
||||
--continue=false --allow-overwrite=true --dir=${localdir} $(webseed "$remotedir/${filename}.asc") -o "${filename}.asc"
|
||||
[[ $? -ne 0 ]] && display_alert "Failed to download control file" "" "wrn"
|
||||
|
||||
|
||||
# download torrent first
|
||||
if [[ `wget -S --spider https://dl.armbian.com/torrent/${filename}.torrent 2>&1 >/dev/null \
|
||||
| grep 'HTTP/1.1 200 OK'` && ${USE_TORRENT} == "yes" ]]; then
|
||||
if [[ ${USE_TORRENT} == "yes" ]]; then
|
||||
|
||||
display_alert "downloading using torrent network" "$filename"
|
||||
local ariatorrent="--summary-interval=0 --auto-save-interval=0 --seed-time=0 --bt-stop-timeout=15 --console-log-level=error \
|
||||
--allow-overwrite=true --download-result=hide --rpc-save-upload-metadata=false --auto-file-renaming=false \
|
||||
--file-allocation=trunc --continue=true https://dl.armbian.com/torrent/${filename}.torrent \
|
||||
--file-allocation=trunc --continue=true ${torrent} \
|
||||
--dht-file-path=$SRC/cache/.aria2/dht.dat --disable-ipv6=true --stderr --follow-torrent=mem --dir=${localdir}"
|
||||
|
||||
# exception. It throws error if dht.dat file does not exists. Error suppress needed only at first download.
|
||||
@@ -959,7 +968,7 @@ download_and_verify()
|
||||
|
||||
# direct download if torrent fails
|
||||
if [[ ! -f ${localdir}/${filename}.complete ]]; then
|
||||
if [[ `wget -S --spider https://dl.armbian.com/${remotedir}/${filename} 2>&1 >/dev/null \
|
||||
if [[ `wget -S --spider ${server}${remotedir}/${filename} 2>&1 >/dev/null \
|
||||
| grep 'HTTP/1.1 200 OK'` ]]; then
|
||||
display_alert "downloading using http(s) network" "$filename"
|
||||
aria2c --download-result=hide --rpc-save-upload-metadata=false --console-log-level=error \
|
||||
|
||||
Reference in New Issue
Block a user