]> code.ossystems Code Review - openembedded-core.git/commit
wic: isoimage-isohybrid: check result of glob()
authorEd Bartosh <ed.bartosh@linux.intel.com>
Fri, 14 Jul 2017 12:33:03 +0000 (15:33 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 17 Jul 2017 12:48:54 +0000 (13:48 +0100)
commitad02f253f08a3da3fa5c86ae4f6ba7f94b070578
tree853ff3eb56c33f3933d2dcca885709b40e4bdd44
parent522ac21831944b06fbcc372ac61762576d792c22
wic: isoimage-isohybrid: check result of glob()

isoimage-isohybrid plugin uses result of glob call to
get path to initrd image. When glob returns empty list
the plugin crashes with IndexError.

Checking if result of glob call is not empty should fix
the breakage.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/plugins/source/isoimage-isohybrid.py