Merge lp:~charlesk/indicator-session/lp-1331873-use-etc-release-for-distro-name into lp:indicator-session/14.10
Proposed by
Charles Kerr
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Ted Gould | ||||
Approved revision: | 455 | ||||
Merged at revision: | 449 | ||||
Proposed branch: | lp:~charlesk/indicator-session/lp-1331873-use-etc-release-for-distro-name | ||||
Merge into: | lp:indicator-session/14.10 | ||||
Diff against target: |
95 lines (+78/-2) 1 file modified
src/service.c (+78/-2) |
||||
To merge this branch: | bzr merge lp:~charlesk/indicator-session/lp-1331873-use-etc-release-for-distro-name | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Ted Gould (community) | Approve | ||
Review via email: mp+226934@code.launchpad.net |
Commit message
Add support for getting the distro name from /etc/os-release.
Description of the change
Add support for getting the distro name from /etc/os-release.
get_os_release() returns a string-to-string GHashTable of the parsed file with unescaped value strings.
We only need one key out of this file, so a GHashTable is admittedly a bit of overkill, but separating the parser code from the use code like this makes the code more readable and makes the parser code self-contained.
To post a comment you must log in.
PASSED: Continuous integration, rev:449 jenkins. qa.ubuntu. com/job/ indicator- session- ci/140/ jenkins. qa.ubuntu. com/job/ indicator- session- utopic- amd64-ci/ 4 jenkins. qa.ubuntu. com/job/ indicator- session- utopic- armhf-ci/ 4 jenkins. qa.ubuntu. com/job/ indicator- session- utopic- armhf-ci/ 4/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/indicator- session- ci/140/ rebuild
http://