[OE-core] [PATCH] buildhistory.bbclass: Improve robustness in image file listing

Otavio Salvador otavio at ossystems.com.br
Mon Jan 27 18:15:07 UTC 2014


On Thu, Jan 23, 2014 at 10:11 AM, Otavio Salvador
<otavio at ossystems.com.br> wrote:
> The filenames sometimes may have strange names. With the 'awk' script
> it handled a limited number of spaces in the filename and a package
> installing a file named "test file with spaces" would have its name
> truncated.
>
> This patch uses the find's printf formating to simplify the code and
> proper handle this case. From a testing image, the only diff produced
> is:
>
> ,----[ files-in-image.txt diff ]
> | --rwxr-xr-x root       root                0 ./usr/bin/test\ file\ with\
> | +-rwxr-xr-x root       root                0 ./usr/bin/test file with spaces
> `----
>
> The options used are available since findutils 4.2.5, released in 19
> Nov 2004, making it available in all supported host distributions.
>
> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>

ping?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list