]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/lsb: sanitise the distro identifier
authorRoss Burton <ross.burton@intel.com>
Tue, 12 Apr 2016 17:04:22 +0000 (18:04 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 13 Apr 2016 09:12:43 +0000 (10:12 +0100)
commit8a96a7207561e00eb92e4fb69e7340f20bfa2053
treed512ab86ca4d79b5eca4dc9e1a078f645f5711ff
parentd71f4f54b4c22c9382bddce66c1580d875dcfef2
lib/oe/lsb: sanitise the distro identifier

The distribution identifier is often used to create filenames, so it needs to be
safe to use as a filename.  Whilst most distributions have e.g. Fedora or Debian
as their name, it is possible that the name contains special characters.

To ensure this doesn't cause a problem strip out any non-alphanumerics from the
distribution name before returning it.

[ YOCTO #9443 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/lsb.py