summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorCraig McQueen <craig.mcqueen@innerrange.com>2015-10-15 16:13:09 +1100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-11-16 11:39:29 +0000
commit4b29c802857e84d50b869c9f9f6bfdff002b15fa (patch)
treedcce7b33cfc87a3fececd932dc721959dcb6812d /meta/recipes-core
parent0f516a55fa6c9139a51d6263a3185aed13c6455d (diff)
downloadpoky-4b29c802857e84d50b869c9f9f6bfdff002b15fa.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 (From OE-Core rev: f6e0ea000fa3b9a726ab56500f643f9902371618) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/os-release/os-release.bb2
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 c690b82b2e..df19ca216f 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 () {
29 for field in d.getVar('OS_RELEASE_FIELDS', True).split(): 29 for field in d.getVar('OS_RELEASE_FIELDS', True).split():
30 value = d.getVar(field, True) 30 value = d.getVar(field, True)
31 if value: 31 if value:
32 f.write('{0}={1}\n'.format(field, value)) 32 f.write('{0}="{1}"\n'.format(field, value))
33 if d.getVar('RPM_SIGN_PACKAGES', True) == '1': 33 if d.getVar('RPM_SIGN_PACKAGES', True) == '1':
34 rpm_gpg_pubkey = d.getVar('RPM_GPG_PUBKEY', True) 34 rpm_gpg_pubkey = d.getVar('RPM_GPG_PUBKEY', True)
35 bb.utils.mkdirhier('${B}/rpm-gpg') 35 bb.utils.mkdirhier('${B}/rpm-gpg')