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

7
build.py Normal file → Executable file
View file

@ -1,3 +1,4 @@
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
# build.py - part of the FDroid server tools
@ -19,7 +20,6 @@
import sys
import os
import shutil
import glob
import subprocess
import re
import zipfile
@ -29,10 +29,11 @@ import shlex
from xml.dom.minidom import Document
from optparse import OptionParser
import common
#Read configuration...
execfile('config.py')
execfile('metadata.py')
# Parse command line...
parser = OptionParser()
@ -45,7 +46,7 @@ parser.add_option("-c", "--clean", action="store_true", default=False,
(options, args) = parser.parse_args()
# Get all apps...
apps = read_metadata()
apps = common.read_metadata()
#Clear and/or create the 'built' directory, depending on mode:
built_dir = 'built'