diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-07-15 14:14:56 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-23 20:06:58 +0100 |
commit | 8a3789a7b11565aa2ceae0b79f93edb0d353173b (patch) | |
tree | 2153ec0ed1c7bb1f6d3655105483a0a47cccdfcb /bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py | |
parent | 5aba3d7fcc3a9edf477bedeced96444b2fbcb8be (diff) | |
download | poky-8a3789a7b11565aa2ceae0b79f93edb0d353173b.tar.gz |
bitbake: toaster: move bldcontrol initial_data fixture to code
We move the initial_data fixture to a code migration,
in order to make sure that we don't overwrite modified data.
The data is inserted only if no data is present, instead
of always overwriting the entry.
The check settings returns 0 if the check was ok.
(Bitbake rev: 525c316ac95c06c52fbcfc836ca5599ee9dbfe8b)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py b/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py index 0e8260e6c9..a91dd150ef 100644 --- a/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py +++ b/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py | |||
@@ -27,7 +27,12 @@ class Command(NoArgsCommand): | |||
27 | if not be.builddir.startswith("/"): | 27 | if not be.builddir.startswith("/"): |
28 | be.builddir = raw_input(" -- builddir must be an absolute path:") | 28 | be.builddir = raw_input(" -- builddir must be an absolute path:") |
29 | is_changed = True | 29 | is_changed = True |
30 | if is_changed: | ||
31 | print "saved" | ||
32 | be.save() | ||
30 | return is_changed | 33 | return is_changed |
31 | 34 | ||
32 | while (_verify_be()): | 35 | while (_verify_be()): |
33 | pass | 36 | pass |
37 | |||
38 | return 0 | ||