[Sugar-devel] Strawberry ID?
Art Hunkins
abhunkin at uncg.edu
Thu Nov 12 16:29:09 EST 2009
I can't seem to find either the lsb_release command, or a file by that name.
Typing "lsb_release" in the Terminal gives me "file not found".
"Find" doesn't locate the file either, nor does a listing of the /etc/
directory (I thought I understood that is where it was supposed to be).
I tried these things on the XO-1, Strawberry, soas03 and soas04.
Can you give a further hint?
Should my Python line read something like:
if not /etc/lsb_release(LSB_VERSION) == "1.0":
to rule out Strawberry?
I'd at least like to play around with this idea to see if I can accurately
identify select versions.
Art Hunkins
----- Original Message -----
From: "Tomeu Vizoso" <tomeu at sugarlabs.org>
To: "Art Hunkins" <abhunkin at uncg.edu>
Cc: <sugar-devel at lists.sugarlabs.org>
Sent: Thursday, November 12, 2009 1:47 PM
Subject: Re: [Sugar-devel] Strawberry ID?
On Thu, Nov 12, 2009 at 19:36, Art Hunkins <abhunkin at uncg.edu> wrote:
> What bit of code would identify SoaS as Strawberry, in contrast to any
> later
> versions, including soas03, soas04 and eventually Blueberry?
A common mechanism for detecting the distro and version is
lsb_release, but I'm not sure how well will work for the use cases you
are interested in.
Regards,
Tomeu
> Art Hunkins
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
--
«Sugar Labs is anyone who participates in improving and using Sugar.
What Sugar Labs does is determined by the participants.» - David
Farning
_______________________________________________
Sugar-devel mailing list
Sugar-devel at lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel
More information about the Sugar-devel
mailing list