diff options
author | David Reyna <David.Reyna@windriver.com> | 2018-02-15 20:26:01 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-28 12:52:34 +0100 |
commit | 2f110a55dc603f8832702c1e33c1e88efe98a84e (patch) | |
tree | 2b62f872282ab9103e4d5ed8d7e87cdb711f13fe /bitbake | |
parent | f500504b81b3369d11ec151918004507e87e5026 (diff) | |
download | poky-2f110a55dc603f8832702c1e33c1e88efe98a84e.tar.gz |
bitbake: toaster: do not fail on optional 'custom.xml' file
Explicitly capture and ignore errors when trying to load the optional
'custom.xml' fixture file.
[YOCTO #12554]
(Bitbake rev: 132458939d3987ebc58685397714af3d6d5cd8fd)
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py b/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py index 582114ac97..823c6f154a 100644 --- a/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py +++ b/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py | |||
@@ -107,7 +107,10 @@ class Command(BaseCommand): | |||
107 | action="ignore", | 107 | action="ignore", |
108 | message="^.*No fixture named.*$") | 108 | message="^.*No fixture named.*$") |
109 | print("Importing custom settings if present") | 109 | print("Importing custom settings if present") |
110 | call_command("loaddata", "custom") | 110 | try: |
111 | call_command("loaddata", "custom") | ||
112 | except: | ||
113 | print("NOTE: optional fixture 'custom' not found") | ||
111 | 114 | ||
112 | # we run lsupdates after config update | 115 | # we run lsupdates after config update |
113 | print("\nFetching information from the layer index, " | 116 | print("\nFetching information from the layer index, " |