From 75381ef14718f3821acefaa64a4f7d5243ba15df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Mon, 16 Jun 2014 12:30:33 +0200 Subject: [PATCH] Keep version names even if found separate from the code --- fdroidserver/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index fc31a8bd..303b3b6b 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -858,12 +858,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 @@ -903,7 +903,7 @@ def parse_androidmanifests(paths, ignoreversions=None): max_version = "Ignore" if max_version is None: - max_version = "Unknown" + max_version = version if version else "Unknown" return (max_version, max_vercode, max_package)