[fsresizer] Tiny step towards getting data from KPMcore

main
Adriaan de Groot 6 years ago
parent 579f1dfee7
commit 428929b64f

@ -22,6 +22,9 @@
#include <QDateTime>
#include <QThread>
#include <kpmcore/backend/corebackend.h>
#include <kpmcore/backend/corebackendmanager.h>
#include "CalamaresVersion.h"
#include "JobQueue.h"
#include "GlobalStorage.h"
@ -85,11 +88,18 @@ ResizeFSJob::prettyName() const
Calamares::JobResult
ResizeFSJob::exec()
{
auto backend_p = CoreBackendManager::self()->backend();
if ( backend_p )
cDebug() << "KPMCore backend @" << (void *)backend_p << backend_p->id() << backend_p->version();
else
cDebug() << "No KPMCore backend";
if ( !isValid() )
return Calamares::JobResult::error(
tr( "Invalid configuration" ),
tr( "The file-system resize job has an invalid configuration "
"and will not run." ) );
return Calamares::JobResult::ok();
}

Loading…
Cancel
Save