summaryrefslogtreecommitdiffstats
path: root/tools/devtool/operationrunner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/devtool/operationrunner.cpp')
-rw-r--r--tools/devtool/operationrunner.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/devtool/operationrunner.cpp b/tools/devtool/operationrunner.cpp
index 97bdfd7d7..41cc9d41b 100644
--- a/tools/devtool/operationrunner.cpp
+++ b/tools/devtool/operationrunner.cpp
@@ -34,7 +34,7 @@
#include "operationrunner.h"
#include <errors.h>
-#include <kdupdaterupdateoperationfactory.h>
+#include <updateoperationfactory.h>
#include <packagemanagercore.h>
#include <QMetaObject>
@@ -59,7 +59,7 @@ int OperationRunner::runOperation(QStringList arguments, RunMode mode)
try {
const QString name = arguments.takeFirst();
QScopedPointer<QInstaller::Operation> op(KDUpdater::UpdateOperationFactory::instance()
- .create(name));
+ .create(name, m_core));
if (!op) {
std::cerr << "Cannot instantiate operation: " << qPrintable(name) << std::endl;
return EXIT_FAILURE;
@@ -71,8 +71,6 @@ int OperationRunner::runOperation(QStringList arguments, RunMode mode)
connect(object, SIGNAL(outputTextChanged(QString)), this, SLOT(print(QString)));
}
op->setArguments(arguments);
- op->setValue(QLatin1String("installer"), QVariant::fromValue(m_core));
-
bool readyPerformed = false;
if (mode == RunMode::Do)