[oe] [PATCH resend] oestats-client.bbclass: Fix "AttributeError: 'NoneType' object has no attribute 'startswith'" if OESTATS_SERVER is not set
Frans Meulenbroeks
fransmeulenbroeks at gmail.com
Mon Oct 25 21:06:08 UTC 2010
2010/10/25 Andreas Oberritter <obi at opendreambox.org>:
> Signed-off-by: Andreas Oberritter <obi at opendreambox.org>
> Acked-by: Chris Larson <chris_larson at mentor.com>
> ---
> classes/oestats-client.bbclass | 5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/classes/oestats-client.bbclass b/classes/oestats-client.bbclass
> index a98c9d1..f64d21f 100644
> --- a/classes/oestats-client.bbclass
> +++ b/classes/oestats-client.bbclass
> @@ -181,12 +181,13 @@ python oestats_eventhandler () {
> return
>
> server = bb.data.getVar('OESTATS_SERVER', e.data, True)
> - if not server.startswith('http://') and not server.startswith('https://'):
> - server = "http://%s" %(server)
> builder = bb.data.getVar('OESTATS_BUILDER', e.data, True)
> if not server or not builder:
> return
>
> + if not server.startswith('http://') and not server.startswith('https://'):
> + server = "http://%s" %(server)
> +
> if getName(e) == 'BuildStarted':
> oestats_start(server, builder, e.data)
> elif getName(e) == 'BuildCompleted':
> --
> 1.7.1
pushed, thank you
More information about the Openembedded-devel
mailing list