aboutsummaryrefslogtreecommitdiffstats
path: root/meta-skeleton
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-12-22 08:35:43 +1300
committerPaul Eggleton <paul.eggleton@linux.intel.com>2016-12-22 15:16:40 +1300
commit367afd4ed8b09d73dee981a214fb3ecdfc7e3ea1 (patch)
tree732ad16e4a3bb1436d0876363393540158c8231e /meta-skeleton
parentf146f38cc63cc6a9d8bfb642bc955797d26338eb (diff)
downloadopenembedded-core-contrib-367afd4ed8b09d73dee981a214fb3ecdfc7e3ea1.tar.gz
classes/sstate: handle filenames containing square brackets
If a recipe installs a file or directory whose name contains square brackets [ ] that form a valid glob expression and that file then they won't be correctly removed from the sysroot, because we pass each path in the sstate manifest to our oe.path.remove() function which calls glob.glob() on the path passed into it and the expression won't actually match the original filename. Since we don't expect to put any wildcarded expressions in the sstate manifests, and we already have a try...except around this, we can actually use os.remove() here instead. Similarly, when we pass existing file paths to "grep" looking through the manifests, we don't want those paths to be treated as regexes - so use grep's -F command line switch. Fixes [YOCTO #10836]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'meta-skeleton')
0 files changed, 0 insertions, 0 deletions