mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 01:15:38 -04:00
[partition] [fsresizer] Fix KPMCore API versions
- tests need the defines as well - scandevices API changed with API 3.3.1
This commit is contained in:
parent
c844188907
commit
198acadd23
4 changed files with 5 additions and 3 deletions
|
@ -107,7 +107,7 @@ QList< Device* > getDevices( DeviceType which, qint64 minimumSize )
|
|||
bool writableOnly = (which == DeviceType::WritableOnly);
|
||||
|
||||
CoreBackend* backend = CoreBackendManager::self()->backend();
|
||||
#ifdef WITH_KPMCORE4API
|
||||
#ifdef WITH_KPMCORE331API
|
||||
DeviceList devices = backend->scanDevices( /* not includeReadOnly, not includeLoopback */ ScanFlag(0) );
|
||||
#else
|
||||
DeviceList devices = backend->scanDevices( /* excludeReadOnly */ true );
|
||||
|
|
|
@ -32,4 +32,5 @@ if( ECM_FOUND AND BUILD_TESTING )
|
|||
)
|
||||
|
||||
set_target_properties( partitionjobtests PROPERTIES AUTOMOC TRUE )
|
||||
target_compile_definitions( partitionjobtests PRIVATE ${_partition_defs} )
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue