[welcome] Make libparted optional

- This turns off the space-available check in the welcome module;
   without libparted, always fail that check.
 - Allows running the welcome module on OS without libparted.
This commit is contained in:
Adriaan de Groot 2018-01-13 21:26:31 +01:00
parent b0c4fbc1bb
commit 2bc394656d
2 changed files with 18 additions and 7 deletions

View file

@ -313,7 +313,12 @@ RequirementsChecker::verdict() const
bool
RequirementsChecker::checkEnoughStorage( qint64 requiredSpace )
{
#ifdef WITHOUT_LIBPARTED
cDebug() << "WARNING: RequirementsChecker is configured without libparted.";
return false;
#else
return check_big_enough( requiredSpace );
#endif
}