App.comments is no more since !772

This commit is contained in:
Hans-Christoph Steiner 2023-04-20 22:50:38 +02:00
parent dbe21b2b94
commit 2b81a66b79
7 changed files with 2 additions and 16 deletions

View File

@ -58,6 +58,7 @@ metadata_v0:
- ../tests/dump_internal_metadata_format.py - ../tests/dump_internal_metadata_format.py
- sed -i - sed -i
-e "/buildozer/d" -e "/buildozer/d"
-e '/^comments\W /d'
-e 's,maven\(\W\) false,maven\1 null,' -e 's,maven\(\W\) false,maven\1 null,'
metadata/dump_*/*.yaml metadata/dump_*/*.yaml
- diff -uw metadata/dump_* - diff -uw metadata/dump_*

View File

@ -878,7 +878,7 @@ def make_v1(apps, packages, repodir, repodict, requestsdict, fdroid_signing_key_
for k, v in sorted(appdict.items()): for k, v in sorted(appdict.items()):
if not v: if not v:
continue continue
if k in ('Builds', 'comments', 'metadatapath', if k in ('Builds', 'metadatapath',
'ArchivePolicy', 'AutoName', 'AutoUpdateMode', 'MaintainerNotes', 'ArchivePolicy', 'AutoName', 'AutoUpdateMode', 'MaintainerNotes',
'Provides', 'Repo', 'RepoType', 'RequiresRoot', 'Provides', 'Repo', 'RepoType', 'RequiresRoot',
'UpdateCheckData', 'UpdateCheckIgnore', 'UpdateCheckMode', 'UpdateCheckData', 'UpdateCheckIgnore', 'UpdateCheckMode',

View File

@ -159,7 +159,6 @@ class App(dict):
self.id = None self.id = None
self.metadatapath = None self.metadatapath = None
self.Builds = [] self.Builds = []
self.comments = {}
self.added = None self.added = None
self.lastUpdated = None self.lastUpdated = None
@ -607,16 +606,6 @@ def read_metadata(appids={}, sort_by_time=False):
return apps return apps
# Known keys not originating from the metadata are:
#
# 'comments' - a list of comments from the metadata file. Each is
# a list of the form [field, comment] where field is
# the name of the field it preceded in the metadata
# file. Where field is None, the comment goes at the
# end of the file. Alternatively, 'build:version' is
# for a comment before a particular build version.
def parse_metadata(metadatapath): def parse_metadata(metadatapath):
"""Parse metadata file, also checking the source repo for .fdroid.yml. """Parse metadata file, also checking the source repo for .fdroid.yml.

View File

@ -185,7 +185,6 @@ UpdateCheckName: null
VercodeOperation: [] VercodeOperation: []
WebSite: '' WebSite: ''
added: null added: null
comments: {}
id: com.politedroid id: com.politedroid
lastUpdated: null lastUpdated: null
metadatapath: metadata/com.politedroid.yml metadatapath: metadata/com.politedroid.yml

View File

@ -1136,7 +1136,6 @@ UpdateCheckName: null
VercodeOperation: [] VercodeOperation: []
WebSite: http://sufficientlysecure.org/index.php/adaway WebSite: http://sufficientlysecure.org/index.php/adaway
added: null added: null
comments: {}
id: org.adaway id: org.adaway
lastUpdated: null lastUpdated: null
metadatapath: metadata/org.adaway.yml metadatapath: metadata/org.adaway.yml

View File

@ -406,7 +406,6 @@ UpdateCheckName: null
VercodeOperation: [] VercodeOperation: []
WebSite: http://www.smssecure.org WebSite: http://www.smssecure.org
added: null added: null
comments: {}
id: org.smssecure.smssecure id: org.smssecure.smssecure
lastUpdated: null lastUpdated: null
metadatapath: metadata/org.smssecure.smssecure.yml metadatapath: metadata/org.smssecure.smssecure.yml

View File

@ -2643,7 +2643,6 @@ VercodeOperation:
- '%c + 5' - '%c + 5'
WebSite: http://www.videolan.org/vlc/download-android.html WebSite: http://www.videolan.org/vlc/download-android.html
added: null added: null
comments: {}
id: org.videolan.vlc id: org.videolan.vlc
lastUpdated: null lastUpdated: null
metadatapath: metadata/org.videolan.vlc.yml metadatapath: metadata/org.videolan.vlc.yml