Commit acbf5da9 authored by Francesco Colista's avatar Francesco Colista
Browse files

main/speedtest-cli: upgrade to 2.1.3

parent 25b56c05
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=speedtest-cli
pkgver=2.1.2
pkgrel=3
pkgver=2.1.3
pkgrel=0
pkgdesc="Command line interface for testing internet bandwidth using speedtest.net"
url="https://github.com/sivel/speedtest-cli"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/sivel/speedtest-cli/archive/v$pkgver.tar.gz
invalid_literal_fix.patch"
source="$pkgname-$pkgver.tar.gz::https://github.com/sivel/speedtest-cli/archive/v$pkgver.tar.gz"
build() {
python3 setup.py build
......@@ -23,5 +22,6 @@ package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="f2eb125116f42075d3248e1c0590cce4f822f383ff7c54c158504b16de72bf35b35d55a78014413a95a5f5bafa98c71c3ea011f20f480f1db272d6e8800c40bd speedtest-cli-2.1.2.tar.gz
924a1931b4b61723ed0b41e694ec663cf5f721cc624f6e1c17386dc4c3347aef178651de4127b5e919eba37ee70c766c741a448211fe1f410705ae137b190e7c invalid_literal_fix.patch"
sha512sums="
e2ecd9b4eea95e3641045c3da217ec5a39846b26c1f773fdd31c6ffe3cb5e35341320fc1992f865af48afd1a704c4d4224f9ec4048abb69131ee2f32385ae94c speedtest-cli-2.1.3.tar.gz
"
diff --git a/speedtest.py b/speedtest.py
index 92a2be0b93..23d8ddbe4e 100755
--- a/speedtest.py
+++ b/speedtest.py
@@ -1171,7 +1171,7 @@ class Speedtest(object):
client = get_attributes_by_tag_name(root, 'client')
ignore_servers = list(
- map(int, server_config['ignoreids'].split(','))
+ map(int, server_config['ignoreids'].split(',') if len(server_config['ignoreids']) else [])
)
ratio = int(upload['ratio'])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment