mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Don't check for dirs and files in the main script
This commit is contained in:
parent
85d32576eb
commit
429221f282
2 changed files with 3 additions and 8 deletions
|
|
@ -867,6 +867,9 @@ def write_metadata(dest, app):
|
|||
# returned by the parse_metadata function.
|
||||
def read_metadata(xref=True, package=None):
|
||||
apps = []
|
||||
for basedir in ('metadata', 'tmp'):
|
||||
if not os.path.exists(basedir):
|
||||
os.makedirs(basedir)
|
||||
for metafile in sorted(glob.glob(os.path.join('metadata', '*.txt'))):
|
||||
if package is None or metafile == os.path.join('metadata', package + '.txt'):
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue