[partition] fix build with latest kpmcore.

This commit is contained in:
Andrius Štikonas 2018-08-12 14:26:43 +01:00
parent 8dc95f3e75
commit 22aa6dc132

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();