Temporary fixes for internal default value

This commit is contained in:
Benjamin Bohard 2019-12-20 10:37:27 +01:00
parent 9335fbb16e
commit 6b8a88e103
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class Risotto(Controller):
except: except:
raise Exception(_('Invalid source')) raise Exception(_('Invalid source'))
else: else:
releases = {'1.0.0': {'distribution': 'stable'}} releases = {'1.0.0': {'distribution': 'last'}}
os.makedirs(os.path.join(get_config().get('source').get('root_path'), source_name), exist_ok=True) os.makedirs(os.path.join(get_config().get('source').get('root_path'), source_name), exist_ok=True)
with open(os.path.join(get_config().get('source').get('root_path'), source_name, 'releases.yml'), 'w') as release_file: with open(os.path.join(get_config().get('source').get('root_path'), source_name, 'releases.yml'), 'w') as release_file:
yaml.dump(releases, release_file) yaml.dump(releases, release_file)