Bug 2455

Summary: combo-layer fail to handle empty patch list
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Otavio Salvador <otavio>
Component: meta-yoctoAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher, sgw
Version: 1.2   
Target Milestone: 1.3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Otavio Salvador 2012-05-14 13:17:06 UTC
The combo-layer utility fail to parse properly an empty patch list, returning:

<pre>

Traceback (most recent call last):
  File "/home/otavio/hacking/ossystems/embedded-linux/openembedded-core/scripts/combo-layer", line 417, in <module>
    ret = main()
  File "/home/otavio/hacking/ossystems/embedded-linux/openembedded-core/scripts/combo-layer", line 413, in main
    actions.get(args[1], action_error)(confdata, args[1:])
  File "/home/otavio/hacking/ossystems/embedded-linux/openembedded-core/scripts/combo-layer", line 284, in action_update
    apply_patchlist(conf, repos)
  File "/home/otavio/hacking/ossystems/embedded-linux/openembedded-core/scripts/combo-layer", line 307, in apply_patchlist
    patchfile = line.split()[0]
IndexError: list index out of range
</pre>
Comment 1 Paul Eggleton 2012-07-31 14:00:14 UTC
Fix merged in revision 8140c5b7ee1e9a6fb8860ff9e2f9d88ccff48ee6.