Merge pull request #1011 from stikonas/master

[partition] fix build with latest kpmcore.
This commit is contained in:
Adriaan de Groot 2018-08-12 16:54:49 +02:00 committed by GitHub
commit 81ea5f5249
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -665,7 +665,11 @@ PartitionCoreModule::scanForLVMPVs()
// Update LVM::pvList
LvmDevice::scanSystemLVM( physicalDevices );
#ifdef WITH_KPMCOREGT33
for ( auto p : LVM::pvList::list() )
#else
for ( auto p : LVM::pvList )
#endif
{
m_lvmPVs << p.partition().data();