mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
Allowed for APKs with bad names, and added Mobile C64, which is one of those
This commit is contained in:
parent
88be9b9fc4
commit
06cc795565
7
README
7
README
@ -31,6 +31,13 @@ The license for the application.
|
||||
|
||||
Common values: GPLv2, GPLv2+, GPLv3, Apache2, MIT, BSD
|
||||
|
||||
==Name==
|
||||
|
||||
The name of the application. Normally, this field should not be present since the
|
||||
application's correct name is retrieved from the APK file. However, in a situation
|
||||
where an APK contains a bad or missing application name, it can be overridden
|
||||
using this.
|
||||
|
||||
==Web Site==
|
||||
|
||||
The URL for the application's web site.
|
||||
|
@ -28,6 +28,7 @@ def read_metadata():
|
||||
thisinfo['id'] = metafile[9:-4]
|
||||
print "Reading metadata for " + thisinfo['id']
|
||||
thisinfo['description'] = ''
|
||||
thisinfo['name'] = None
|
||||
thisinfo['summary'] = ''
|
||||
thisinfo['license'] = 'Unknown'
|
||||
thisinfo['web'] = ''
|
||||
@ -56,6 +57,8 @@ def read_metadata():
|
||||
value = line[index+1:]
|
||||
if field == 'Description':
|
||||
mode = 1
|
||||
elif field == 'Name':
|
||||
thisinfo['name'] = value
|
||||
elif field == 'Summary':
|
||||
thisinfo['summary'] = value
|
||||
elif field == 'Source Code':
|
||||
|
9
metadata/de.joergjahnke.c64.android.txt
Normal file
9
metadata/de.joergjahnke.c64.android.txt
Normal file
@ -0,0 +1,9 @@
|
||||
License:GPL
|
||||
Name:Mobile C64
|
||||
Web Site:http://jmec64.sourceforge.net/
|
||||
Source Code:http://sourceforge.net/projects/jmec64/develop
|
||||
Issue Tracker:http://sourceforge.net/tracker/?group_id=171310
|
||||
Summary:Commodore 64 Emulator
|
||||
Description:
|
||||
A Commodore 64 (C64) emulator.
|
||||
.
|
@ -152,11 +152,13 @@ for app in apps:
|
||||
bestapk = apk
|
||||
|
||||
if bestver == 0:
|
||||
app['name'] = app['id']
|
||||
if app['name'] is None:
|
||||
app['name'] = app['id']
|
||||
app['icon'] = ''
|
||||
print "WARNING: Application " + app['id'] + " has no packages"
|
||||
else:
|
||||
app['name'] = bestapk['name']
|
||||
if app['name'] is None:
|
||||
app['name'] = bestapk['name']
|
||||
app['icon'] = bestapk['icon']
|
||||
|
||||
# Generate warnings for apk's with no metadata (or create skeleton
|
||||
|
Loading…
Reference in New Issue
Block a user