* [PATCH] os-release: put double-quotes around variable contents
@ 2015-10-15 5:13 Craig McQueen
2016-04-27 3:51 ` Craig McQueen
0 siblings, 1 reply; 3+ messages in thread
From: Craig McQueen @ 2015-10-15 5:13 UTC (permalink / raw)
To: yocto
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
---
meta/recipes-core/os-release/os-release.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-core/os-release/os-release.bb b/meta/recipes-core/os-release/os-release.bb
index db82760..2fda674 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')
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] os-release: put double-quotes around variable contents
2015-10-15 5:13 [PATCH] os-release: put double-quotes around variable contents Craig McQueen
@ 2016-04-27 3:51 ` Craig McQueen
2016-04-27 3:57 ` Craig McQueen
0 siblings, 1 reply; 3+ messages in thread
From: Craig McQueen @ 2016-04-27 3:51 UTC (permalink / raw)
To: yocto
I notice this patch hasn't been applied. Is there anything I can do to improve it?
Regards,
Craig McQueen
> -----Original Message-----
> From: Craig McQueen
> Sent: Thursday, 15 October 2015 4:13 PM
> To: yocto@yoctoproject.org
> Cc: Craig McQueen <craig.mcqueen@innerrange.com>
> Subject: [PATCH] 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
> ---
> meta/recipes-core/os-release/os-release.bb | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/os-release/os-release.bb b/meta/recipes-
> core/os-release/os-release.bb
> index db82760..2fda674 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')
> --
> 2.1.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] os-release: put double-quotes around variable contents
2016-04-27 3:51 ` Craig McQueen
@ 2016-04-27 3:57 ` Craig McQueen
0 siblings, 0 replies; 3+ messages in thread
From: Craig McQueen @ 2016-04-27 3:57 UTC (permalink / raw)
To: Craig McQueen, yocto
Sorry, my mistake--it looks as though it was applied. I was looking at an old local "master" that wasn't updated to upstream master.
Regards,
Craig McQueen
> -----Original Message-----
> From: yocto-bounces@yoctoproject.org [mailto:yocto-
> bounces@yoctoproject.org] On Behalf Of Craig McQueen
> Sent: Wednesday, 27 April 2016 1:51 PM
> To: yocto@yoctoproject.org
> Subject: Re: [yocto] [PATCH] os-release: put double-quotes around variable
> contents
>
> I notice this patch hasn't been applied. Is there anything I can do to improve
> it?
>
> Regards,
> Craig McQueen
>
>
> > -----Original Message-----
> > From: Craig McQueen
> > Sent: Thursday, 15 October 2015 4:13 PM
> > To: yocto@yoctoproject.org
> > Cc: Craig McQueen <craig.mcqueen@innerrange.com>
> > Subject: [PATCH] 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
> > ---
> > meta/recipes-core/os-release/os-release.bb | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/meta/recipes-core/os-release/os-release.bb
> > b/meta/recipes- core/os-release/os-release.bb index db82760..2fda674
> > 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')
> > --
> > 2.1.4
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-04-27 3:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-15 5:13 [PATCH] os-release: put double-quotes around variable contents Craig McQueen
2016-04-27 3:51 ` Craig McQueen
2016-04-27 3:57 ` Craig McQueen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.