From 13baea955872be1f4c58735eb7747e1fcc47c14c Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 3 Jun 2014 14:18:08 -0400 Subject: [PATCH] some APKs do not have a name, like system APKs It is not necessarily a good idea to try to distribute system APKs via FDroid, but `fdroid update` should just ignore APKs it cannot handle rather than die and prevent a repo from being fully created. This is necessary to handle the automatic creation of repos, like for debug builds from a Jenkins server. --- fdroidserver/update.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fdroidserver/update.py b/fdroidserver/update.py index 8cd6b0e3..27431c39 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -967,6 +967,9 @@ def main(): break if not found: if options.create_metadata: + if 'name' not in apk: + logging.error(apk['id'] + ' does not have a name! Skipping...') + continue f = open(os.path.join('metadata', apk['id'] + '.txt'), 'w') f.write("License:Unknown\n") f.write("Web Site:\n") -- 2.30.2