Re: [yocto] [RFC] Blubber, a tool to set up yocto/poky projects easily

2014-03-11 Thread David Nyström
On 2014-03-10 17:15, Josef Holzmayr wrote: Hello Marc, Marc Ferland ferla...@sonatest.com hat am 10. März 2014 um 16:52 geschrieben: On Mon, Mar 10, 2014 at 11:59:08AM +0100, Josef Holzmayr wrote: Howdy! After looking more and more into yocto, one of the main issues for me is the process

[yocto] [RFC] Blubber, a tool to set up yocto/poky projects easily

2014-03-10 Thread Josef Holzmayr
Howdy! After looking more and more into yocto, one of the main issues for me is the process to set up a project properly, including all layers and conf options. Especially those which would be needed to set exactly the same way again and again every time somebody needs to reproduce a build. So

Re: [yocto] [RFC] Blubber, a tool to set up yocto/poky projects easily

2014-03-10 Thread Vali Cobelea
Hi Josef, Looks ok at a first look, but my first suggestion would be to start using the is operator instead of == when it comes to comparing strings. Otherwise using your way with == will crash if any of the variables (those sys.argv[]) are None (void). Best regards, Vali On 03/10/2014

Re: [yocto] [RFC] Blubber, a tool to set up yocto/poky projects easily

2014-03-10 Thread Josef Holzmayr
Hello Vali, Vali Cobelea valentin.cobe...@enea.com hat am 10. März 2014 um 12:05 geschrieben: Looks ok at a first look, but my first suggestion would be to start using the is operator instead of == when it comes to comparing strings. Otherwise using your way with == will crash if any of the

Re: [yocto] [RFC] Blubber, a tool to set up yocto/poky projects easily

2014-03-10 Thread Vali Cobelea
Hi, I would advise to use the official documentation of Python : http://docs.python.org/2/library/stdtypes.html . But if you do want to stick with the stackoverflow advises : http://stackoverflow.com/questions/2988017/string-comparison-in-python-is-vs The idea behind 'is' would be to have

Re: [yocto] [RFC] Blubber, a tool to set up yocto/poky projects easily

2014-03-10 Thread Josef Holzmayr
Hello Vali, Vali Cobelea valentin.cobe...@enea.com hat am 10. März 2014 um 12:20 geschrieben: The idea behind 'is' would be to have more safety and less crashes when one of the arguments, in your case, is empty (eg None). Well there are cases where I needed to compare strings that have been

Re: [yocto] [RFC] Blubber, a tool to set up yocto/poky projects easily

2014-03-10 Thread Alex J Lennon
On 10/03/2014 11:32, Josef Holzmayr wrote: Hello Vali, Vali Cobelea valentin.cobe...@enea.com hat am 10. März 2014 um 12:20 geschrieben: The idea behind 'is' would be to have more safety and less crashes when one of the arguments, in your case, is empty (eg None). Well there are cases

Re: [yocto] [RFC] Blubber, a tool to set up yocto/poky projects easily

2014-03-10 Thread Josef Holzmayr
Hello Alex, Alex J Lennon ajlen...@dynamicdevices.co.uk hat am 10. März 2014 um 12:43 geschrieben: fwiw I'd have thought myself that string comparison should be string comparison (==) as if you use an object identity comparison as a string comparison (is), you potentially introduce opaque

Re: [yocto] [RFC] Blubber, a tool to set up yocto/poky projects easily

2014-03-10 Thread Chris Larson
On Mon, Mar 10, 2014 at 5:02 AM, Josef Holzmayr jholzm...@the-exact-steps.net wrote: Hello Alex, Alex J Lennon ajlen...@dynamicdevices.co.uk hat am 10. März 2014 um 12:43 geschrieben: fwiw I'd have thought myself that string comparison should be string comparison (==) as if you use

Re: [yocto] [RFC] Blubber, a tool to set up yocto/poky projects easily

2014-03-10 Thread Josef Holzmayr
Hello Chris Chris Larson clar...@kergoth.com hat am 10. März 2014 um 15:40 geschrieben: On Mon, Mar 10, 2014 at 5:02 AM, Josef Holzmayr jholzm...@the-exact-steps.net wrote: Hello Alex, Alex J Lennon ajlen...@dynamicdevices.co.uk hat am 10. März 2014 um 12:43 geschrieben:

Re: [yocto] [RFC] Blubber, a tool to set up yocto/poky projects easily

2014-03-10 Thread Marc Ferland
On Mon, Mar 10, 2014 at 11:59:08AM +0100, Josef Holzmayr wrote: Howdy! After looking more and more into yocto, one of the main issues for me is the process to set up a project properly, including all layers and conf options. Especially those which would be needed to set exactly the same way

Re: [yocto] [RFC] Blubber, a tool to set up yocto/poky projects easily

2014-03-10 Thread Josef Holzmayr
Hello Marc, Marc Ferland ferla...@sonatest.com hat am 10. März 2014 um 16:52 geschrieben: On Mon, Mar 10, 2014 at 11:59:08AM +0100, Josef Holzmayr wrote: Howdy! After looking more and more into yocto, one of the main issues for me is the process to set up a project properly,