Bug 7773

Summary: The sanity_check function in scripts/combo-layer throws an exception if dest_dir is not set
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Igor Stoppa <igor.stoppa>
Component: configurationAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: patrick.ohly, poky.bs.watcher, poky.watcher
Version: 1.9   
Target Milestone: 1.9 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Igor Stoppa 2015-05-18 09:14:42 UTC
Following the instructions from the master README file, I forgot to set the dest_dir, then continued with scripts/combo-layer init and got the following:

./scripts/combo-layer init
Traceback (most recent call last):
  File "./scripts/combo-layer", line 869, in <module>
    ret = main()
  File "./scripts/combo-layer", line 864, in main
    confdata.sanity_check(initmode)
  File "./scripts/combo-layer", line 149, in sanity_check
    dest_dir = os.path.normpath(self.repos[name]["dest_dir"])
KeyError: 'dest_dir'
Comment 1 Patrick Ohly 2015-05-20 11:49:19 UTC
Patch sent to OE-core mailing list, see "combo-layer: handle unset dest_dir in sanity_check()".