Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed logic to compare with “non installed” with “minor version upped" #156

Merged
merged 3 commits into from
Nov 13, 2014

Conversation

attakei
Copy link
Contributor

@attakei attakei commented Oct 26, 2014

In verifying #155, I have failed to install build-tool another reasons.
So, I try to fix it. (These and #155 are independent of each other.)

Issue 1: When packaging begin from a fresh clone of buildozer, it is always failed to check latest version of build-tool.
Current logic:
v_build_tools = '0'
ver = [1, 2, 3]
'0' > [1, 2, 3]
--> False, do not run install build-tool.

Fixed:
v_build_tools = [0]
ver = [1, 2, 3]
[0] > [1, 2, 3]
--> True, do not run install build-tool.

Issue 2: wrong args for _android_update_sdk()
Method expects string as arg, but passed with list.
Fix to pass package name based from version list, for example ver=[1,2,3'] --> arg='build-tool-1.2.3'.

attakei

…x: 20.0.1)

method bulldozer.targets.android.TargetAndroid._install_android_packages()
If build-tools is not installed, then variable "v_build_tools" is string = '0'.
If latest version contains minor version code ~ example 19.0.3 ~, then variable "ver" is list = [19, 0, 3].

In that case, build-tools is not enable to install, because expression([19, 0, 3] > '0') returns False.
@attakei
Copy link
Contributor Author

attakei commented Oct 27, 2014

This might resolve issue #146.

@attakei attakei force-pushed the patches/resolve_compare_versions branch from 1948550 to c6b4235 Compare November 4, 2014 04:17
@olymk2
Copy link

olymk2 commented Nov 13, 2014

Just tested this and it fixes the build issue nicely, can we see this merged ?

tito added a commit that referenced this pull request Nov 13, 2014
Fixed logic to compare with “non installed” with “minor version upped"
@tito tito merged commit 0eca4a2 into kivy:master Nov 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants