diff options
author | Craig McQueen <craig.mcqueen@innerrange.com> | 2015-10-15 16:13:09 +1100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-11-16 11:20:11 +0000 |
commit | f6e0ea000fa3b9a726ab56500f643f9902371618 (patch) | |
tree | 5b46748c68b3ec0c8518e035cb7cc3d8d5833cfc /meta/recipes-core/os-release | |
parent | 80d12c734ad0c1d86ee5b0c6639c4e840dc6dfad (diff) | |
download | openembedded-core-contrib-f6e0ea000fa3b9a726ab56500f643f9902371618.tar.gz |
os-release: put double-quotes around variable contents
This makes the resulting /etc/os-release file have valid shell
assignment syntax. This makes it loadable by a shell script, using the
'source' command:
source /etc/os-release
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core/os-release')
-rw-r--r-- | meta/recipes-core/os-release/os-release.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/os-release/os-release.bb b/meta/recipes-core/os-release/os-release.bb index c690b82b2e4..df19ca216fa 100644 --- a/meta/recipes-core/os-release/os-release.bb +++ b/meta/recipes-core/os-release/os-release.bb @@ -29,7 +29,7 @@ python do_compile () { for field in d.getVar('OS_RELEASE_FIELDS', True).split(): value = d.getVar(field, True) if value: - f.write('{0}={1}\n'.format(field, value)) + f.write('{0}="{1}"\n'.format(field, value)) if d.getVar('RPM_SIGN_PACKAGES', True) == '1': rpm_gpg_pubkey = d.getVar('RPM_GPG_PUBKEY', True) bb.utils.mkdirhier('${B}/rpm-gpg') |