Reproduce and fix bug #28

This commit is contained in:
Aurélien Gâteau 2014-07-18 12:26:12 +02:00
parent 99fe98a9cf
commit 568f2abd0b
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ CreatePartitionJob::exec()
backendPartitionTable->commit();
FileSystem& fs = m_partition->fileSystem();
if ( fs.type() == FileSystem::Unformatted )
if ( fs.type() == FileSystem::Unformatted || fs.type() == FileSystem::Extended )
return Calamares::JobResult::ok();
if ( !fs.create( report, partitionPath ) )

View File

@ -171,7 +171,7 @@ JobTests::testCreatePartitionExtended()
m_queue.enqueue( job_ptr( job ) );
partition = firstFreePartition( m_device->partitionTable() );
job = newCreatePartitionJob( partition, PartitionRole( PartitionRole::Extended ), FileSystem::Unformatted, 10 * MB);
job = newCreatePartitionJob( partition, PartitionRole( PartitionRole::Extended ), FileSystem::Extended, 10 * MB);
job->updatePreview();
m_queue.enqueue( job_ptr( job ) );
Partition* extendedPartition = job->partition();