]> code.ossystems Code Review - openembedded-core.git/commit
wic: fix path parsing, use last occurrence
authorGeorge McCollister <george.mccollister@gmail.com>
Thu, 10 Sep 2015 17:30:52 +0000 (12:30 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Sep 2015 18:21:46 +0000 (19:21 +0100)
commit35ecb0b8557aae85f377c9d99f1a72cbb76fb6d8
tree1b001328d58492ba3259fd9b53941594c47298ec
parent259df232b513367a0a18b17e3e377260a770288f
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