chiark / gitweb /
update: handle APKs with a blank versionName
authorHans-Christoph Steiner <hans@eds.org>
Tue, 17 Apr 2018 10:15:51 +0000 (12:15 +0200)
committerHans-Christoph Steiner <hans@eds.org>
Tue, 17 Apr 2018 10:36:49 +0000 (12:36 +0200)
commitde35f1b05bb864c2d51b278f933cfd9a39a96b16
treec8463c1943b764257c09bf14693f62a118207e2d
parent9bf9159a771375a92625669ea6a5606ad13f1abf
update: handle APKs with a blank versionName

Instead of just crashing, first try to use the versionName as written in the
build metadata, otherwise just let it be blank.  A blank versionName will
cause fdroidclient < 1.3 to crash.  Blank versionNames are not allowed in
the .txt metadata format, only .yml.

closes #477
closes #478
closes fdroidclient#1416
closes fdroidclient#1417
closes fdroidclient#1418
fdroiddata!3061
fdroidserver/index.py
fdroidserver/update.py
tests/repo/duplicate.permisssions_9999999.apk
tests/repo/index-v1.json
tests/repo/index.xml