]> code.ossystems Code Review - openembedded-core.git/commit
classes/package: handle filenames containing wildcards
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 3 Oct 2013 16:02:48 +0000 (17:02 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Oct 2013 15:54:26 +0000 (16:54 +0100)
commit1aa3fbb547b0e21455f0dcc9b72ded08dc0efd67
treed29c5d40f231e0b57b18cacaeb2360f1e7b33a4b
parente36ac3ab3a7fe02c7eeb3998ff33c001ab795841
classes/package: handle filenames containing wildcards

It is uncommon, but it is possible for upstream sources to contain files
that have wildcard characters in their names (Webmin is an example).
Because we were running glob.glob() on every entry in the list of
entries in FILES and then adding the result to the files list to be
processed, the process would loop infinitely if files whose names
contained wildcard characters were present. Fix this by avoiding
re-processing the output of glob.glob() with itself, and also "escape"
wildcard characters in FILES entries added automatically from
do_split_packages().

Fixes [YOCTO #1676].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass