From 5500787935d4f69674661b2861f9049d9e0537c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 20 Jun 2014 11:10:52 +0200 Subject: [PATCH] Revert "Keep version names even if found separate from the code" This reverts commit 75381ef14718f3821acefaa64a4f7d5243ba15df. --- fdroidserver/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 8c7c0286..edd1a6a2 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -861,12 +861,12 @@ def parse_androidmanifests(paths, ignoreversions=None): max_version = None max_vercode = None max_package = None - version = None - vercode = None for path in paths: gradle = has_extension(path, 'gradle') + version = None + vercode = None # Remember package name, may be defined separately from version+vercode package = max_package @@ -906,7 +906,7 @@ def parse_androidmanifests(paths, ignoreversions=None): max_version = "Ignore" if max_version is None: - max_version = version if version else "Unknown" + max_version = "Unknown" return (max_version, max_vercode, max_package)