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

make _read_version_subdir return parse('0') instead of [0], otherwise… #206

Merged
merged 1 commit into from
Jun 17, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def _read_version_subdir(self, *args):
if not os.path.exists(join(*args)):
self.buildozer.debug(
'build-tools folder not found {}'.format(join(*args)))
return [0]
return parse("0")
for v in os.listdir(join(*args)):
try:
versions.append(parse(v))
Expand All @@ -333,7 +333,7 @@ def _read_version_subdir(self, *args):
if not versions:
self.buildozer.error(
'Unable to find the latest version for {}'.format(join(*args)))
return [0]
return parse("0")
return max(versions)

def _find_latest_package(self, packages, key):
Expand Down