]> code.ossystems Code Review - openembedded-core.git/commit
wic: fix path parsing, use last occurrence
authorGeorge McCollister <george.mccollister@gmail.com>
Fri, 13 May 2016 14:22:53 +0000 (09:22 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 May 2016 09:20:22 +0000 (10:20 +0100)
commitf30c486c17060d2f21618612804a692512ad6a57
tree7cf36970c4c3ffb23a68d2b46fc11201abe00a08
parent2e66f57febe85a63ce2ab98eaf6318d47eb60939
wic: fix path parsing, use last occurrence

If the path contains 'scripts' more than once the first occurrence will be
incorrectly used. Use rfind instead of find to find the last occurrence.

Signed-off-by: George McCollister <george.mccollister@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/plugin.py