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

Fix fdroid stats, checking config before reading it

This commit is contained in:
Ciaran Gultnieks 2013-11-05 07:58:56 +00:00
parent cdccd89df4
commit 75d616c5e5

View File

@ -43,10 +43,6 @@ def main():
global options, config global options, config
if not config['update_stats']:
print "Stats are disabled - check your configuration"
sys.exit(1)
# Parse command line... # Parse command line...
parser = OptionParser() parser = OptionParser()
parser.add_option("-v", "--verbose", action="store_true", default=False, parser.add_option("-v", "--verbose", action="store_true", default=False,
@ -57,6 +53,10 @@ def main():
config = common.read_config(options) config = common.read_config(options)
if not config['update_stats']:
print "Stats are disabled - check your configuration"
sys.exit(1)
# Get all metadata-defined apps... # Get all metadata-defined apps...
metaapps = common.read_metadata(options.verbose) metaapps = common.read_metadata(options.verbose)