diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-09-06 15:49:51 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2012-09-07 18:14:44 +0100 |
commit | 204f272d5a2c3471a1e796132bc16dec72a8f926 (patch) | |
tree | d3278e75f7d4ddc9f171e29c611edf8508642388 /morphlib/app.py | |
parent | 63048d217f7fcd813bf1a2763dd4bc6eaf738505 (diff) | |
download | morph-204f272d5a2c3471a1e796132bc16dec72a8f926.tar.gz |
Add 'build-prefix-ref' setting for creating temporary build refs
This is needed to create temporary build refs and push them to the
repository server. We want this to be configurable to make things
more flexible with regards to different repository server
configurations.
Diffstat (limited to 'morphlib/app.py')
-rwxr-xr-x | morphlib/app.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/morphlib/app.py b/morphlib/app.py index b60a11a7..508e0975 100755 --- a/morphlib/app.py +++ b/morphlib/app.py @@ -48,6 +48,7 @@ defaults = { 'toolchain-target': '%s-baserock-linux-gnu' % os.uname()[4], 'ccache-remotedir': '', 'ccache-remotenlevels': 2, + 'build-ref-prefix': 'baserock/builds' } @@ -145,6 +146,11 @@ class Morph(cliapp.Application): 'build things in a staging chroot ' '(require real root to use)') + self.settings.string(['build-ref-prefix'], + 'Prefix to use for temporary build refs', + metavar='PREFIX', + default=defaults['build-ref-prefix']) + def setup_plugin_manager(self): cliapp.Application.setup_plugin_manager(self) |