|
|
@ -28,8 +28,7 @@
|
|
|
|
QTEST_GUILESS_MAIN( PartitionJobTests )
|
|
|
|
QTEST_GUILESS_MAIN( PartitionJobTests )
|
|
|
|
|
|
|
|
|
|
|
|
using namespace Calamares;
|
|
|
|
using namespace Calamares;
|
|
|
|
using CalamaresUtils::operator""_MiB;
|
|
|
|
using namespace CalamaresUtils::Units;
|
|
|
|
using CalamaresUtils::Partition::isPartitionFreeSpace;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PartitionMounter
|
|
|
|
class PartitionMounter
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -104,7 +103,7 @@ static Partition*
|
|
|
|
firstFreePartition( PartitionNode* parent )
|
|
|
|
firstFreePartition( PartitionNode* parent )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
for ( auto child : parent->children() )
|
|
|
|
for ( auto child : parent->children() )
|
|
|
|
if ( isPartitionFreeSpace( child ) )
|
|
|
|
if ( CalamaresUtils::Partition::isPartitionFreeSpace( child ) )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return child;
|
|
|
|
return child;
|
|
|
|
}
|
|
|
|
}
|
|
|
|