mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-25 16:38:21 -04:00
[hostinfo] Use os-release only if non-empty
This commit is contained in:
parent
6528ba30c9
commit
dac47d2c3a
1 changed files with 5 additions and 3 deletions
|
@ -67,10 +67,12 @@ hostOSName()
|
||||||
{
|
{
|
||||||
#ifdef WITH_KOSRelease
|
#ifdef WITH_KOSRelease
|
||||||
KOSRelease r;
|
KOSRelease r;
|
||||||
return r.name();
|
if ( !r.name().isEmpty() )
|
||||||
#else
|
{
|
||||||
return hostOS();
|
return r.name();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
return hostOS();
|
||||||
}
|
}
|
||||||
|
|
||||||
static QString
|
static QString
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue