chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b395095
)
Return none if no AM.xml paths exist
author
Daniel Martí
<mvdan@mvdan.cc>
Wed, 14 Aug 2013 13:07:26 +0000
(15:07 +0200)
committer
Daniel Martí
<mvdan@mvdan.cc>
Wed, 14 Aug 2013 13:07:26 +0000
(15:07 +0200)
fdroidserver/common.py
patch
|
blob
|
history
diff --git
a/fdroidserver/common.py
b/fdroidserver/common.py
index 7cfc439bb23ca78833575d66d8ebe1e4735c69e9..123d50eacab5913b93a258662cc10bc4dc8b5d6d 100644
(file)
--- a/
fdroidserver/common.py
+++ b/
fdroidserver/common.py
@@
-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