[Sugar-devel] Strawberry ID?
sebastian at when.com
Thu Nov 12 17:02:05 EST 2009
The file /etc/fedora-release might be where you want to look...
Art Hunkins wrote:
> 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
>> 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.
>> Art Hunkins
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
More information about the Sugar-devel