From 991ed156e0b22f2489f394ae08c196b3b9c61a7a Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Tue, 21 Jun 2011 17:46:58 +0200 Subject: added verbose output file to operation runner --- tools/operationrunner/operationrunner.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') diff --git a/tools/operationrunner/operationrunner.cpp b/tools/operationrunner/operationrunner.cpp index 623c711c6..b5ddfd99c 100644 --- a/tools/operationrunner/operationrunner.cpp +++ b/tools/operationrunner/operationrunner.cpp @@ -107,8 +107,11 @@ int main(int argc, char **argv) QInstaller::init(); + QInstaller::VerboseWriter::instance()->setOutputStream(app.arguments().at(0) + QLatin1String(".txt")); + QInstaller::setVerbose( true ); + QString operationName = argumentList.takeFirst(); KDUpdater::UpdateOperation* const operation = KDUpdater::UpdateOperationFactory::instance().create(operationName); if (!operation) { -- cgit v1.2.3 From 56ac9b2c3e0ef8e1d57ecda09e0ffeb1927293b2 Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Tue, 21 Jun 2011 18:05:37 +0200 Subject: we only can create the instance here --- tools/operationrunner/operationrunner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/operationrunner/operationrunner.cpp b/tools/operationrunner/operationrunner.cpp index b5ddfd99c..99d404962 100644 --- a/tools/operationrunner/operationrunner.cpp +++ b/tools/operationrunner/operationrunner.cpp @@ -107,7 +107,7 @@ int main(int argc, char **argv) QInstaller::init(); - QInstaller::VerboseWriter::instance()->setOutputStream(app.arguments().at(0) + QLatin1String(".txt")); + QInstaller::VerboseWriter::instance(); QInstaller::setVerbose( true ); -- cgit v1.2.3 From 495b36af03dda34b9d76d44e83d3b4b388ef47d3 Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Wed, 22 Jun 2011 17:13:39 +0200 Subject: now macrelocate should work again --- tools/operationrunner/operationrunner.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/operationrunner/operationrunner.cpp b/tools/operationrunner/operationrunner.cpp index 99d404962..b76aed455 100644 --- a/tools/operationrunner/operationrunner.cpp +++ b/tools/operationrunner/operationrunner.cpp @@ -130,10 +130,12 @@ int main(int argc, char **argv) } FakeInstaller fakeInstaller; - fakeInstaller.setTargetDir(sdkTargetDir); + if (!sdkTargetDir.isEmpty()) { + fakeInstaller.setTargetDir(sdkTargetDir); - operation->setValue(QLatin1String("installer"), - QVariant::fromValue(static_cast(&fakeInstaller))); + operation->setValue(QLatin1String("installer"), + QVariant::fromValue(static_cast(&fakeInstaller))); + } operation->setArguments(argumentList); -- cgit v1.2.3