myunity depends upon DISTRIB_RELEASE being the second entry in /etc/lsb-release
Bug #999771 reported by
Joel Ebel
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MyUnity |
New
|
Undecided
|
Unassigned | ||
Precise Backports |
Fix Released
|
Undecided
|
Unassigned | ||
myunity (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Precise |
Won't Fix
|
Undecided
|
Unassigned | ||
Quantal |
Won't Fix
|
Undecided
|
Unassigned |
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
Related branches
To post a comment you must log in.
correction:
SHELL "source /etc/lsb-release; echo -n $DISTRIB_RELEASE" to Uversion
The -n is needed to prevent Uversion having a newline at the end of it.