Bug 12751

Summary: Rocko needs backport of custom.xml issue (bug 12554)
Product: [Build System, Metadata & Runtime] Toaster Reporter: David Reyna <david.reyna>
Component: toasterAssignee: David Reyna <david.reyna>
Status: RESOLVED FIXED QA Contact: Toaster default assignee <toaster>
Severity: normal    
Priority: Medium+ CC: jessica.zhang, richard.purdie, stanciux.mihail
Version: 2.5   
Target Milestone: 2.4.3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Fixed checksetting file none

Description David Reyna 2018-05-15 11:23:41 UTC
Created attachment 4302 [details]
Fixed checksetting file

1. Rocko needs the patch from bug 12554, which was only applied to master/sumo.

2. Here is the workaround

Copy the attached file to "bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py"


3. Here is the patch:

diff --git a/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py b/bitbake/lib/toaster/bldcontrol/management/commands/checks
index 582114a..823c6f1 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):
                                 action="ignore",
                                 message="^.*No fixture named.*$")
                             print("Importing custom settings if present")
-                            call_command("loaddata", "custom")
+                            try:
+                                call_command("loaddata", "custom")
+                            except:
+                                print("NOTE: optional fixture 'custom' not found")
 
                         # we run lsupdates after config update
                         print("\nFetching information from the layer index, "