Add the possibility to add new modules to install on local repositories.

This commit is contained in:
Albert Cervera i Areny 2017-01-19 18:46:13 +01:00
parent 03c1ba0d69
commit 9aad9cbee0

View file

@ -32,13 +32,15 @@ config_file = args.config
#sys.exit(1)
config = yaml.load(open('upgrades/config.yml', 'r').read())
if os.path.exists('config.yml'):
override = yaml.load(open('config.yml', 'r').read())
config['to_install'] += override.get('to_install', [])
to_uninstall = config.get('to_uninstall')
#db = psycopg2.connect(dbname=database, host=host, port=port, user=user,
#password=password)
#password=password)
connection = psycopg2.connect(dbname=database_name)
cursor = connection.cursor()