As an example:

antarus@goats3 ~ $ cat /etc/lsb-release
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu precise (development branch)"
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
GOOGLE_CODENAME=precise
GOOGLE_ID=Goobuntu
GOOGLE_RELEASE="12.04 <redacted>"
GOOGLE_ROLE=desktop
GOOGLE_TRACK=<redacted>

I'm unsure if this is actually kosher (we have done it for at least 6
years), but the file is basically shell, from my understanding.

-A

On Fri, Oct 5, 2012 at 11:45 AM, Iain Lane <i...@orangesquash.org.uk> wrote:
> OK I uploaded and accepted it. I'm not sure about the version number (we
> don't really have precedent for this), but it should be alright.
>
> I'd really appreciate someone backporting these fixes to the precise
> (release) package.
>
> and you could use pgrep (from procps) instead of that ps | grep -v grep
> stuff ;-).
>
> --
> You received this bug notification because you are a member of Goobuntu
> Team, which is subscribed to the bug report.
> https://bugs.launchpad.net/bugs/999771
>
> Title:
>   myunity depends upon DISTRIB_RELEASE being the second entry in /etc
>   /lsb-release
>
> Status in MyUnity:
>   New
> Status in Precise Backports:
>   New
> Status in “myunity” package in Ubuntu:
>   Invalid
> Status in “myunity” source package in Precise:
>   New
> Status in “myunity” source package in Quantal:
>   Won't Fix
>
> Bug description:
>   myunity incorrectly parses the lsb-release file in Main.module.  It makes 
> assumptions about the order of lines.  Since lsb-release is a list of shell 
> variables which can be sourced by other programs, perhaps it would be better 
> to use the shell to parse it, rather than just cat it.  Something more like:
>   SHELL "source /etc/lsb-release; echo $DISTRIB_RELEASE" to Uversion
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/myunity/+bug/999771/+subscriptions

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/999771

Title:
  myunity depends upon DISTRIB_RELEASE being the second entry in /etc
  /lsb-release

To manage notifications about this bug go to:
https://bugs.launchpad.net/myunity/+bug/999771/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to