From 3313a5341d547f0fa059320325cd093b1300395d Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sat, 17 Oct 2020 14:59:01 +0200 Subject: [PATCH] [partitions] Adapt to KPMcore 4.2 changes --- src/libcalamares/partition/KPMManager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libcalamares/partition/KPMManager.cpp b/src/libcalamares/partition/KPMManager.cpp index 60a129951..5f6b87589 100644 --- a/src/libcalamares/partition/KPMManager.cpp +++ b/src/libcalamares/partition/KPMManager.cpp @@ -71,9 +71,12 @@ InternalManager::InternalManager() InternalManager::~InternalManager() { +#if defined( WITH_KPMCORE4API ) && !defined( WITH_KPMCORE42API ) cDebug() << "Cleaning up KPMCore backend .."; -#if defined( WITH_KPMCORE4API ) + // From KPMcore 4.0 until KPMcore 4.2 we needed to stop + // the helper by hand. KPMcore 4.2 ported to polkit directly, + // which doesn't need a helper. auto backend_p = CoreBackendManager::self()->backend(); if ( backend_p ) {