Make metadata.py a proper module (renamed to common.py)

This commit is contained in:
Henrik Tunedal 2011-02-17 21:16:26 +01:00
parent 0ad478ae01
commit a26c3ca507
4 changed files with 11 additions and 6 deletions

5
update.py Normal file → Executable file
View file

@ -1,3 +1,4 @@
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
# update.py - part of the FDroid server tools
@ -34,7 +35,7 @@ repo_icon = None
repo_url = None
execfile('config.py')
execfile('metadata.py')
import common
# Parse command line...
parser = OptionParser()
@ -66,7 +67,7 @@ if (repo_url is None or repo_name is None or
sys.exit(1)
# Get all apps...
apps = read_metadata(verbose=options.verbose)
apps = common.read_metadata(verbose=options.verbose)
# Copy apks and source tarballs for stuff we've built from source that
# is flagged to be included in the repo...