summaryrefslogtreecommitdiff
path: root/ybd.py
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2015-08-02 01:33:19 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2015-08-02 01:33:19 +0000
commit5f1b45f446c0b35fd80088c059a42baa1c74b3fa (patch)
treea748c189e5e8b5e2a75f338b1f63ca3bfd7b1201 /ybd.py
parentf817a16d60d1f95d10f3e3163e9788d20d4f3908 (diff)
downloadybd-5f1b45f446c0b35fd80088c059a42baa1c74b3fa.tar.gz
Rename 'settings' => 'config'
Diffstat (limited to 'ybd.py')
-rwxr-xr-xybd.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/ybd.py b/ybd.py
index 52f4398..4c6f16d 100755
--- a/ybd.py
+++ b/ybd.py
@@ -30,22 +30,22 @@ import sandboxlib
print('')
with app.timer('TOTAL'):
app.setup(sys.argv)
- target = os.path.join(app.settings['defdir'], app.settings['target'])
- app.log('TARGET', 'Target is %s' % target, app.settings['arch'])
- with app.timer('DEFINITIONS', 'parsing %s' % app.settings['def-version']):
+ target = os.path.join(app.config['defdir'], app.config['target'])
+ app.log('TARGET', 'Target is %s' % target, app.config['arch'])
+ with app.timer('DEFINITIONS', 'parsing %s' % app.config['def-version']):
defs = Definitions()
with app.timer('CACHE-KEYS', 'cache-key calculations'):
- cache.get_cache(defs, app.settings['target'])
+ cache.get_cache(defs, app.config['target'])
defs.save_trees()
sandbox.executor = sandboxlib.executor_for_platform()
- app.log(app.settings['target'], 'Sandbox using %s' % sandbox.executor)
+ app.log(app.config['target'], 'Sandbox using %s' % sandbox.executor)
if sandboxlib.chroot == sandbox.executor:
- app.log(app.settings['target'], 'WARNING: rogue builds in a chroot ' +
+ app.log(app.config['target'], 'WARNING: rogue builds in a chroot ' +
'sandbox may overwrite your system')
- if app.settings.get('instances'):
+ if app.config.get('instances'):
app.spawn()
- assemble(defs, app.settings['target'])
- deploy(defs, app.settings['target'])
+ assemble(defs, app.config['target'])
+ deploy(defs, app.config['target'])