]> 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>
Tue, 31 Mar 2015 21:21:44 +0000 (22:21 +0100)
commit6c93520b5aaceefecccd83dc77e8ad7681d312c6
treeb893a69f8c20fcbf5eb3906c5641a4f860115f6b
parenta8547b3c2c0b8bf3150043b1b6570f0d44b20335
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