1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-11 15:13:27 +02:00

Fix several read_metadata-related issues

Various calls with the wrong parameters, and also an unused parameter on
the function itself.
This commit is contained in:
Ciaran Gultnieks 2014-05-20 17:48:45 +01:00
parent 9cb5bbd1ee
commit 277d95f57d
5 changed files with 5 additions and 5 deletions

View File

@ -329,7 +329,7 @@ def main():
config = common.read_config(options)
# Get all apps...
allapps = metadata.read_metadata(options.verbose)
allapps = metadata.read_metadata()
apps = common.read_app_args(args, allapps, False)

View File

@ -422,7 +422,7 @@ def parse_srclib(metafile, **kw):
# Read all metadata. Returns a list of 'app' objects (which are dictionaries as
# returned by the parse_metadata function.
def read_metadata(xref=True, package=None, store=True):
def read_metadata(xref=True, package=None):
apps = []
for basedir in ('metadata', 'tmp'):

View File

@ -26,7 +26,7 @@ def main():
if not os.path.isdir('metadata'):
return
metadata.read_metadata(xref=False, store=False)
metadata.read_metadata(xref=True)
if __name__ == "__main__":
main()

View File

@ -42,7 +42,7 @@ def main():
config = common.read_config(options)
# Get all apps...
allapps = metadata.read_metadata(xref=False)
allapps = metadata.read_metadata(xref=True)
apps = common.read_app_args(args, allapps, False)
for app in apps:

View File

@ -71,7 +71,7 @@ def main():
sys.exit(1)
# Get all metadata-defined apps...
metaapps = metadata.read_metadata(options.verbose)
metaapps = metadata.read_metadata()
statsdir = 'stats'
logsdir = os.path.join(statsdir, 'logs')