Re: sugar equivalent of uname?

2010-01-03 Thread Tomeu Vizoso
On Sun, Jan 3, 2010 at 00:04, George Hunt georgejh...@gmail.com wrote:
 Thanks,

 the rpm solution works on at least builds 767, 802, and 1.5 FC11 backported
 to XO1.0.

 I'l go with that .

Good that's enough for you. For the sake of people who read the
archives, the portable way is to use jarabe.config.version for =0.84
and assume 0.82 if that's not present.

But in most situations is better to check for capabilities instead of versions.

Regards,

Tomeu

 George

 On Sat, Jan 2, 2010 at 5:37 PM, Peter Robinson pbrobin...@gmail.com wrote:

 On Sat, Jan 2, 2010 at 9:09 PM, George Hunt georgejh...@gmail.com wrote:
  I've spent all morning googling to find the documentation of how to
  determine which sugar build I'm running under -- without success.
 
  If someone could point me in the right direction, I'd really appreciate
  it.

 You can go into the control panel and its lists it there or you can do
 'rpm -q sugar'

 Peter


 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel





-- 
«Sugar Labs is anyone who participates in improving and using Sugar.
What Sugar Labs does is determined by the participants.» - David
Farning
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: sugar equivalent of uname?

2010-01-03 Thread Mikus Grinbergs
 the portable way is to use jarabe.config.version for =0.84
 and assume 0.82 if that's not present.

When running on an XO, how does one access 'jarabe.config.version' ?

It would be nice if the sugar version could be determined from within a
batch script.  But I looked (in =0.84 builds) for a file by that name,
or for a file with that content, and came up empty.

Thanks for your attention,  mikus
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: sugar equivalent of uname?

2010-01-03 Thread Tomeu Vizoso
On Sun, Jan 3, 2010 at 15:52, Mikus Grinbergs mi...@bga.com wrote:
 the portable way is to use jarabe.config.version for =0.84
 and assume 0.82 if that's not present.

 When running on an XO, how does one access 'jarabe.config.version' ?

 It would be nice if the sugar version could be determined from within a
 batch script.  But I looked (in =0.84 builds) for a file by that name,
 or for a file with that content, and came up empty.

Should be something like this (don't have a XO around right now):

$ python -c from jarabe import config; print config.version

You can also grep the file jarabe/config.py.

Regards,

Tomeu

 Thanks for your attention,  mikus




-- 
«Sugar Labs is anyone who participates in improving and using Sugar.
What Sugar Labs does is determined by the participants.» - David
Farning
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: sugar equivalent of uname?

2010-01-03 Thread Mikus Grinbergs
 Should be something like this (don't have a XO around right now):
 
 $ python -c from jarabe import config; print config.version
 
 You can also grep the file jarabe/config.py.

Thanks - I didn't know about that file.

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


sugar equivalent of uname?

2010-01-02 Thread George Hunt
I've spent all morning googling to find the documentation of how to
determine which sugar build I'm running under -- without success.

If someone could point me in the right direction, I'd really appreciate it.

George
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: sugar equivalent of uname?

2010-01-02 Thread Peter Robinson
On Sat, Jan 2, 2010 at 9:09 PM, George Hunt georgejh...@gmail.com wrote:
 I've spent all morning googling to find the documentation of how to
 determine which sugar build I'm running under -- without success.

 If someone could point me in the right direction, I'd really appreciate it.

You can go into the control panel and its lists it there or you can do
'rpm -q sugar'

Peter
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: sugar equivalent of uname?

2010-01-02 Thread George Hunt
Thanks,

the rpm solution works on at least builds 767, 802, and 1.5 FC11 backported
to XO1.0.

I'l go with that .

George

On Sat, Jan 2, 2010 at 5:37 PM, Peter Robinson pbrobin...@gmail.com wrote:

 On Sat, Jan 2, 2010 at 9:09 PM, George Hunt georgejh...@gmail.com wrote:
  I've spent all morning googling to find the documentation of how to
  determine which sugar build I'm running under -- without success.
 
  If someone could point me in the right direction, I'd really appreciate
 it.

 You can go into the control panel and its lists it there or you can do
 'rpm -q sugar'

 Peter

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel