diff options
| author | Ming Liu <liu.ming50@gmail.com> | 2019-01-14 14:06:48 +0100 |
|---|---|---|
| committer | Ming Liu <liu.ming50@gmail.com> | 2019-01-14 14:15:06 +0100 |
| commit | d49ae8261680ae2cfd4c0179eff013d2def92e1b (patch) | |
| tree | 29f2542d8695ab4596525b1c37c7a361bff285bb /classes/sota_sanity.bbclass | |
| parent | 2782c5c6243736884bcb6f901ed828014601787f (diff) | |
| download | meta-updater-d49ae8261680ae2cfd4c0179eff013d2def92e1b.tar.gz | |
meta: drop True option to getVar calls
Search made with the following regex: getVar ?\((.*), True\), this is
to be consistent with OE.
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Diffstat (limited to 'classes/sota_sanity.bbclass')
| -rw-r--r-- | classes/sota_sanity.bbclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/classes/sota_sanity.bbclass b/classes/sota_sanity.bbclass index e47de19..8e80acb 100644 --- a/classes/sota_sanity.bbclass +++ b/classes/sota_sanity.bbclass | |||
| @@ -1,17 +1,17 @@ | |||
| 1 | # Sanity check the sota setup for common misconfigurations | 1 | # Sanity check the sota setup for common misconfigurations |
| 2 | 2 | ||
| 3 | def sota_check_overrides(status, d): | 3 | def sota_check_overrides(status, d): |
| 4 | for var in (d.getVar('SOTA_OVERRIDES_BLACKLIST', True) or "").split(): | 4 | for var in (d.getVar('SOTA_OVERRIDES_BLACKLIST') or "").split(): |
| 5 | if var in d.getVar('OVERRIDES', True).split(':'): | 5 | if var in d.getVar('OVERRIDES').split(':'): |
| 6 | status.addresult("%s should not be a overrides, because it is a image fstype in updater layer, please check your OVERRIDES setting.\n" % var) | 6 | status.addresult("%s should not be a overrides, because it is a image fstype in updater layer, please check your OVERRIDES setting.\n" % var) |
| 7 | 7 | ||
| 8 | def sota_check_required_variables(status, d): | 8 | def sota_check_required_variables(status, d): |
| 9 | for var in (d.getVar('SOTA_REQUIRED_VARIABLES', True) or "").split(): | 9 | for var in (d.getVar('SOTA_REQUIRED_VARIABLES') or "").split(): |
| 10 | if not d.getVar(var, True): | 10 | if not d.getVar(var): |
| 11 | status.addresult("%s should be set in your local.conf.\n" % var) | 11 | status.addresult("%s should be set in your local.conf.\n" % var) |
| 12 | 12 | ||
| 13 | def sota_raise_sanity_error(msg, d): | 13 | def sota_raise_sanity_error(msg, d): |
| 14 | if d.getVar("SANITY_USE_EVENTS", True) == "1": | 14 | if d.getVar("SANITY_USE_EVENTS") == "1": |
| 15 | bb.event.fire(bb.event.SanityCheckFailed(msg), d) | 15 | bb.event.fire(bb.event.SanityCheckFailed(msg), d) |
| 16 | return | 16 | return |
| 17 | 17 | ||
