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>
This commit is contained in:
Alexandru DAMIAN
2014-07-15 14:14:56 +01:00
committed by Richard Purdie
parent 5aba3d7fcc
commit 8a3789a7b1
3 changed files with 109 additions and 1 deletions

View File

@@ -27,7 +27,12 @@ class Command(NoArgsCommand):
if not be.builddir.startswith("/"):
be.builddir = raw_input(" -- builddir must be an absolute path:")
is_changed = True
if is_changed:
print "saved"
be.save()
return is_changed
while (_verify_be()):
pass
return 0