summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorCraig McQueen <craig.mcqueen@innerrange.com>2015-10-15 16:13:09 +1100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-11 10:57:03 +0000
commit6e32be7c7b19b649e5cac8407650979aae65ef26 (patch)
treea3f79f18c20499e286c069887dff7a12415ab369 /meta
parentd6fed747769c6eef3a155a143965af31226ab3f6 (diff)
downloadpoky-6e32be7c7b19b649e5cac8407650979aae65ef26.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: bab590d738e218fb2da2b3bf27933fe4562de870) Signed-off-by: Ross Burton <ross.burton@intel.com> (From OE-Core master rev: f6e0ea000fa3b9a726ab56500f643f9902371618) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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')