[about-distro] OSRelease to collect "extra" keys

Authored by sitter on Mar 22 2019, 1:59 PM.

Description

[about-distro] OSRelease to collect "extra" keys

Summary:
previously we'd ignore unknown keys. in preparation of moving to a library
let's instead collect them so a user of the class may also access them.

  • new extraKeys helper and extraValue getters
  • extras are always processed as String
  • test case fixture extended + now has comment variants (previously comments couldn't be tested since they were skipped as either comments or invalid/unknown lines. with the extras API we can actually verify that they do not incorrectly end up getting parsed

Test Plan: test still passes

Reviewers: apol

Reviewed By: apol

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D19976

Details

Committed
sitterMar 25 2019, 1:56 PM
Reviewer
apol
Differential Revision
D19976: [about-distro] OSRelease to collect "extra" keys
Parents
R102:620be5cd4dea: [about-distro] pimpl OSRelease privates
Branches
Unknown
Tags
Unknown