mirror of
https://github.com/NaN-tic/tryton-upgrades.git
synced 2023-12-14 03:32:55 +01:00
Add the possibility to add new modules to install on local repositories.
This commit is contained in:
parent
03c1ba0d69
commit
9aad9cbee0
1 changed files with 5 additions and 3 deletions
8
upgrade
8
upgrade
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue