1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-13 02:30:11 +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
if not config['update_stats']:
print "Stats are disabled - check your configuration"
sys.exit(1)
# Parse command line...
parser = OptionParser()
parser.add_option("-v", "--verbose", action="store_true", default=False,
@ -57,6 +53,10 @@ def main():
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...
metaapps = common.read_metadata(options.verbose)