From 4de590433b54ad7505a7a2bbe0a3c410df13cba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 17 Feb 2019 11:36:51 +0200 Subject: [PATCH] Use xz compressed micropython 1.9.* tarballs if we have tar.xz support --- plugins/python-build/share/python-build/micropython-1.9.3 | 5 ++++- plugins/python-build/share/python-build/micropython-1.9.4 | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/python-build/share/python-build/micropython-1.9.3 b/plugins/python-build/share/python-build/micropython-1.9.3 index 7ef179ce..08c4718a 100644 --- a/plugins/python-build/share/python-build/micropython-1.9.3 +++ b/plugins/python-build/share/python-build/micropython-1.9.3 @@ -1,2 +1,5 @@ #require_gcc -install_package micropython-1.9.3 "https://github.com/micropython/micropython/releases/download/v1.9.3/micropython-1.9.3.tar.gz#f94c0b4834edca625b86c0846c89e609ee8fbdbe98e7f719d5108d74b6b4945e" micropython +has_tar_xz_support \ + && src="https://micropython.org/resources/source/micropython-1.9.3.tar.xz#3aa37065f5ea8df372d36253d0ae6333c68572e577df8558d4b7b93e070c624d" \ + || src="https://github.com/micropython/micropython/releases/download/v1.9.3/micropython-1.9.3.tar.gz#f94c0b4834edca625b86c0846c89e609ee8fbdbe98e7f719d5108d74b6b4945e" +install_package micropython-1.9.3 "$src" micropython diff --git a/plugins/python-build/share/python-build/micropython-1.9.4 b/plugins/python-build/share/python-build/micropython-1.9.4 index 82525e98..a2c64837 100644 --- a/plugins/python-build/share/python-build/micropython-1.9.4 +++ b/plugins/python-build/share/python-build/micropython-1.9.4 @@ -1,2 +1,5 @@ #require_gcc -install_package micropython-1.9.4 "https://github.com/micropython/micropython/releases/download/v1.9.4/micropython-1.9.4.tar.gz#0db042011bffcbd65362b67eb3cca87eaefa9f2a55b747fa75e922c706b8ce1a" micropython +has_tar_xz_support \ + && src="https://micropython.org/resources/source/micropython-1.9.4.tar.xz#1d358d99e908a94fd6dd0d6b448ee56c5830b609cf27a42e0db3bee40cc52a9e" \ + || src="https://github.com/micropython/micropython/releases/download/v1.9.4/micropython-1.9.4.tar.gz#0db042011bffcbd65362b67eb3cca87eaefa9f2a55b747fa75e922c706b8ce1a" +install_package micropython-1.9.4 "$src" micropython