Bug 2455 - combo-layer fail to handle empty patch list
Summary: combo-layer fail to handle empty patch list
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 1.2
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.3
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-05-14 13:17 UTC by Otavio Salvador
Modified: 2012-07-31 14:00 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.