Skip to content

Commit 4e180ee

Browse files
committed
Fixed bugs in is_version_{lt,gt} patching helpers
1 parent bc292d4 commit 4e180ee

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pythonforandroid/patching.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,12 @@ def is_version_gt(version):
7575
def is_x(recipe, **kwargs):
7676
return LooseVersion(recipe.version) > version
7777

78-
def is_version_gt(version):
78+
def is_version_lt(version):
7979
def is_x(recipe, **kwargs):
8080
return LooseVersion(recipe.version) < version
81+
return is_x
8182

8283
def version_starts_with(version):
8384
def is_x(recipe, **kwargs):
8485
return recipe.version.startswith(version)
86+
return is_x

pythonforandroid/recipes/python3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Python3Recipe(GuestPythonRecipe):
2626
patches = [
2727
# Python 3.7.1
2828
('patches/py3.7.1_fix-ctypes-util-find-library.patch', version_starts_with("3.7")),
29-
('patches/py3.7.1_fix-zlib-version.patch', version_starts_with("3.7"))
29+
('patches/py3.7.1_fix-zlib-version.patch', version_starts_with("3.7")),
3030

3131
# Python 3.8.1
3232
('patches/py3.8.1.patch', version_starts_with("3.8"))

0 commit comments

Comments
 (0)