← Back to team overview

myunity team mailing list archive

[Bug 999771] Re: myunity depends upon DISTRIB_RELEASE being the second entry in /etc/lsb-release

 

myunity checks the version of ubuntu by taking the last 5 characters of
the second line of lsb-release.  In a default install, this is the
DISTRIB_VERSION, but this is very fragile.  If anything should reorder
the lsb-release file, as often happens in customized installations, this
no longer works.  Actually using the shell to parse the variables in the
file is much more robust.

** Summary changed:

- myunity incorrectly parses lsb-release
+ myunity depends upon DISTRIB_RELEASE being the second entry in /etc/lsb-release

-- 
You received this bug notification because you are a member of MyUnity
team, which is subscribed to MyUnity.
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


References