distutils.bbclass: only modify *.py file if it contains path to be removed
authorRadek Dostal <radek.dostal@streamunlimited.com>
Mon, 5 May 2014 07:38:22 +0000 (09:38 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 May 2014 12:00:31 +0000 (13:00 +0100)
commitaf24459a647704c657bc03bb6307cfa4b69d73f8
treebe35c9b285f0abcc58037da6e3c91ea5309e8378
parentb89df3d1e45b7b8413765077b759cfb978f3fff2
distutils.bbclass: only modify *.py file if it contains path to be removed

Currently sed command touches every single *.py file. This modifies the
timestamp of the file. All *.pyo files will be recompiled during the first
boot, because timestamp will not match. This should be only necessary if
sed command changes the file.

(From OE-Core rev: 2d01c5a4989dcf03a202c27730a2a8f334e0c37a)

Signed-off-by: Radek Dostal <radek.dostal@streamunlimited.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/distutils.bbclass