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:55:24 +0000 (16:55 +0100)
commitedc3bd450b1b6ddde573dbcb3572a578d64e98dc
treeeac768d6370811407c881ca83c9011d605a6af96
parente8ea44264fc63de3207d236a8760dca60a1cd60e
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].

(From OE-Core rev: 1aa3fbb547b0e21455f0dcc9b72ded08dc0efd67)

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