]> code.ossystems Code Review - openembedded-core.git/commit
combo-layer: fix file_exclude for dest_dir = .
authorPatrick Ohly <patrick.ohly@intel.com>
Fri, 27 Mar 2015 13:53:11 +0000 (14:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 29 Mar 2015 22:07:18 +0000 (23:07 +0100)
commit8ea63c6c920c39e5a4ba176223fe472f92e2632a
tree358ff6e8e782fbece51bd5eb2735989fee0e6d82
parentf8cdbe749755dc769150d3a6c2c54318c80e1562
combo-layer: fix file_exclude for dest_dir = .

"filterdiff -x ./some/file" does not remove changes for some/file.
We must be more careful about constructing the path name and
only add the prefix when it really means a directory.

While at it, also better normalize the path in copy_selected_files()
early on, to handle double slashes. Useful should the function ever
gets used for something other that dest_dir (which gets normalized in
sanity_check()).

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/combo-layer