]> code.ossystems Code Review - openembedded-core.git/commit
os-release: sanitise VERSION_ID field
authorJoshua Lock <joshua.g.lock@intel.com>
Wed, 24 Feb 2016 14:52:14 +0000 (14:52 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 28 Feb 2016 11:32:37 +0000 (11:32 +0000)
commitd3975099af20d78b634c23b3ddd073049b016b05
treea4bd11745e777d0e124c77ee4a42628bd97a375f
parentc8be8890e0a9c9d5f1532c4ee4fe9a346ed3ca5b
os-release: sanitise VERSION_ID field

Per os-release(5) the VERSION_ID field should be:

  a lower-case string (mostly numeric, no spaces or other characters
  outside of 0-9, a-z, ".", "_" and "-")

Do some string manipulation to try and ensure the VERSION_ID field
we write is valid.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/os-release/os-release.bb