1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

Return none if no AM.xml paths exist

This commit is contained in:
Daniel Martí 2013-08-14 15:07:26 +02:00
parent b395095949
commit 13a8b1fd0a

View File

@ -910,6 +910,9 @@ def fetch_real_name(app_dir, flavour):
# All values returned are strings.
def parse_androidmanifests(paths):
if not paths:
return (None, None, None)
vcsearch = re.compile(r'.*android:versionCode="([0-9]+?)".*').search
vnsearch = re.compile(r'.*android:versionName="([^"]+?)".*').search
psearch = re.compile(r'.*package="([^"]+)".*').search