]> code.ossystems Code Review - openembedded-core.git/commit
classes/package_rpm: handle square brackets in filenames
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 22 Dec 2016 02:19:56 +0000 (15:19 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 Jan 2017 13:27:00 +0000 (13:27 +0000)
commitf95adb749619e70920c6cc6cd01c6d02cd348fd8
treecafd89fddc46994f5f57943aeebfd3f47acb3dd6
parent18cc0965741102bccc62dfb32ed7753cdacbadc7
classes/package_rpm: handle square brackets in filenames

When constructing a spec file we list files and directory paths in the
%files section. If ] or [ characters are in a file or directory name,
rpm treats them as wildcards which will mean it won't properly match the
filename. Instead, transform these into an ? wildcard so they don't
cause a problem.

(This fixes packaging the npm package "file-set" and anything that
happens to depend upon it, since it includes tests with files that
contain unusual characters including ] and [).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/package_rpm.bbclass