1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 00:40:11 +01:00

Read metadata in sorted order to make processing stable and reproducible.

This commit is contained in:
Paul Sokolovsky 2011-06-16 23:57:01 +03:00
parent de6732684a
commit 01fd3210d2

View File

@ -153,7 +153,7 @@ def parse_metadata(metafile, **kw):
def read_metadata(verbose=False):
apps = []
for metafile in glob.glob(os.path.join('metadata', '*.txt')):
for metafile in sorted(glob.glob(os.path.join('metadata', '*.txt'))):
if verbose:
print "Reading " + metafile
apps.append(parse_metadata(metafile, verbose=verbose))