mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 23:12:46 +03:00
Resolved some unpleasant global-scope usage and related issues
This commit is contained in:
parent
ee268c64ec
commit
e920a3ca58
7 changed files with 24 additions and 41 deletions
13
update.py
13
update.py
|
@ -32,11 +32,7 @@ import time
|
|||
def main():
|
||||
|
||||
# Read configuration...
|
||||
repo_name = None
|
||||
repo_description = None
|
||||
repo_icon = None
|
||||
repo_url = None
|
||||
execfile('config.py')
|
||||
execfile('config.py', globals())
|
||||
|
||||
import common
|
||||
|
||||
|
@ -69,13 +65,6 @@ def main():
|
|||
|
||||
warnings = 0
|
||||
|
||||
# Make sure we have the repository description...
|
||||
if (repo_url is None or repo_name is None or
|
||||
repo_icon is None or repo_description is None):
|
||||
print "Repository description fields are required in config.py"
|
||||
print "See config.sample.py for details"
|
||||
sys.exit(1)
|
||||
|
||||
# Get all apps...
|
||||
apps = common.read_metadata(verbose=options.verbose)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue