mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
0f516a55fa
commit
4b29c80285
@@ -29,7 +29,7 @@ python do_compile () {
|
|||||||
for field in d.getVar('OS_RELEASE_FIELDS', True).split():
|
for field in d.getVar('OS_RELEASE_FIELDS', True).split():
|
||||||
value = d.getVar(field, True)
|
value = d.getVar(field, True)
|
||||||
if value:
|
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':
|
if d.getVar('RPM_SIGN_PACKAGES', True) == '1':
|
||||||
rpm_gpg_pubkey = d.getVar('RPM_GPG_PUBKEY', True)
|
rpm_gpg_pubkey = d.getVar('RPM_GPG_PUBKEY', True)
|
||||||
bb.utils.mkdirhier('${B}/rpm-gpg')
|
bb.utils.mkdirhier('${B}/rpm-gpg')
|
||||||
|
|||||||
Reference in New Issue
Block a user