diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2015-02-19 21:23:55 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2015-02-25 15:49:20 +0000 |
commit | 41ef1965c5c0450230fbc0e35b817654d1713e25 (patch) | |
tree | 6dcaf7a3a130795d2ae66bab813f4b8ed9b1f64f /src/corelib/global/qendian.h | |
parent | 71962474b88d830f268363135609201eeb7baa1a (diff) |
QSysInfo: expand Linux distribution detection to /etc/lsb-release
Some older (or weird) Linux distributions don't have /etc/os-release, so
let's try to read /etc/lsb-release instead. If we find a file called
/etc/<distronamelowercase>-release and it's bigger than the pretty name
we read from /etc/lsb-release, use that.
Because the order of the keys changes between the two *-release files,
we can't do a sorted search anymore.
Change-Id: I1a800c709d3543699131ffff13c48532d5074f3c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Dirk Hohndel <dirk@hohndel.org>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global/qendian.h')
0 files changed, 0 insertions, 0 deletions