mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 18:50:11 +02:00
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.
This commit is contained in:
parent
c81ff764a3
commit
13baea9558
@ -967,6 +967,9 @@ def main():
|
|||||||
break
|
break
|
||||||
if not found:
|
if not found:
|
||||||
if options.create_metadata:
|
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 = open(os.path.join('metadata', apk['id'] + '.txt'), 'w')
|
||||||
f.write("License:Unknown\n")
|
f.write("License:Unknown\n")
|
||||||
f.write("Web Site:\n")
|
f.write("Web Site:\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user