1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-19 21:30:10 +01:00

common: aapt 24.0.0 (v0.2-2964546) is now required

Without a recent aapt, the <uses-permission-sdk-23> tag will not be found.
This commit is contained in:
Hans-Christoph Steiner 2017-12-04 21:22:16 +01:00
parent 657b64f6ed
commit a2978a5526

View File

@ -388,8 +388,14 @@ def test_aapt_version(aapt):
minor = m.group(2) minor = m.group(2)
bugfix = m.group(3) bugfix = m.group(3)
# the Debian package has the version string like "v0.2-23.0.2" # the Debian package has the version string like "v0.2-23.0.2"
if '.' not in bugfix and LooseVersion('.'.join((major, minor, bugfix))) < LooseVersion('0.2.2166767'): too_old = False
logging.warning(_("'{aapt}' is too old, fdroid requires build-tools-23.0.0 or newer!") if '.' in bugfix:
if LooseVersion(bugfix) < LooseVersion('24.0.0'):
too_old = True
elif LooseVersion('.'.join((major, minor, bugfix))) < LooseVersion('0.2.2964546'):
too_old = True
if too_old:
logging.warning(_("'{aapt}' is too old, fdroid requires build-tools-24.0.0 or newer!")
.format(aapt=aapt)) .format(aapt=aapt))
else: else:
logging.warning(_('Unknown version of aapt, might cause problems: ') + output) logging.warning(_('Unknown version of aapt, might cause problems: ') + output)