]> 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>
Wed, 27 Jul 2016 08:00:23 +0000 (09:00 +0100)
commitfd544c3ef6ece1e2f9849ee87227efc6d0954e15
tree1f4b8493c205380baf7eb166e378bca22a9d8792
parentcbe0648e234e83b8ffc336118d3ee2967b4bb175
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>
scripts/lib/wic/plugin.py