diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-09-14 16:09:41 +1200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-17 23:23:21 +0100 |
commit | a9b1aaced19bdafe5e3fb33cf455555d30b1a3ab (patch) | |
tree | c1fda48462b7a685b36c2dbef8086a30addb4f44 /meta-poky/README.poky | |
parent | b2de5836e0760ba1242dbd6b18c067fcc5d79788 (diff) | |
download | poky-a9b1aaced19bdafe5e3fb33cf455555d30b1a3ab.tar.gz |
bitbake: cooker: fix watching empty directories
The code that was supposed to watch directories along BBFILES for
creation of new files wasn't working in the case where the directory did
not initially contain any matching files - since in updateCache() we are
passing the directory path to add_filewatch() and the latter function
calls os.path.dirname() on the path on the assumption that it is a file
path, and thus the parent of the directory got watched but not the
directory itself. (If the directory wasn't empty everything worked fine
since add_filewatch() was called elsewhere with the path to one of the
files in that directory, and thus the directory got watched). Add a
parameter to add_filewatch() to tell it we are passing it directory
path(s) rather than file path(s).
(Bitbake rev: 47a34dee08fcc25d896a1bdf16fa86267f0b898f)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-poky/README.poky')
0 files changed, 0 insertions, 0 deletions