Merge lp:~ngompa13/switchboard-plug-about/rework-osrel-parsing into lp:~elementary-apps/switchboard-plug-about/trunk
Proposed by
Neal Gompa
Status: | Merged |
---|---|
Approved by: | Cody Garver |
Approved revision: | 443 |
Merged at revision: | 443 |
Proposed branch: | lp:~ngompa13/switchboard-plug-about/rework-osrel-parsing |
Merge into: | lp:~elementary-apps/switchboard-plug-about/trunk |
Diff against target: |
57 lines (+10/-24) 1 file modified
src/Plug.vala (+10/-24) |
To merge this branch: | bzr merge lp:~ngompa13/switchboard-plug-about/rework-osrel-parsing |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
elementary Apps team | Pending | ||
Review via email: mp+322261@code.launchpad.net |
Commit message
Rework os-release(5) parsing to be less brittle.
Since /etc/os-release is effectively a set of key-value pairs, we'll just read the whole thing and import it into a HashMap.
This allows us to reference arbitrary entries from the file and set variables with that data accordingly.
Description of the change
This changes the parsing of os-release(5) to be less brittle.
Since /etc/os-release is effectively a set of key-value pairs, we'll just read the whole thing and import it into a HashMap.
This allows us to reference arbitrary entries from the file and set variables with that data accordingly.
To post a comment you must log in.