summaryrefslogtreecommitdiffstats
path: root/installerbuilder/installerbase/installerbase.cpp
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@nokia.com>2011-09-06 16:12:18 +0200
committerTim Jenssen <tim.jenssen@nokia.com>2011-09-07 15:41:38 +0200
commitd51f2bad55dbc968cff891c7b6b5472c23c1fd76 (patch)
treebae014d00c15c25f7622ee4b1a91a820fc0c3dd3 /installerbuilder/installerbase/installerbase.cpp
parent68e067d275dd9d4524f4cc63d4beaa606ddf7743 (diff)
now an installer/maintenancetool can run operations
Change-Id: I9cea18aea7cdc9091b8268692b37dc1ebd098936 Reviewed-on: http://codereview.qt.nokia.com/4267 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
Diffstat (limited to 'installerbuilder/installerbase/installerbase.cpp')
-rw-r--r--installerbuilder/installerbase/installerbase.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/installerbuilder/installerbase/installerbase.cpp b/installerbuilder/installerbase/installerbase.cpp
index f7d611375..1ae6f149e 100644
--- a/installerbuilder/installerbase/installerbase.cpp
+++ b/installerbuilder/installerbase/installerbase.cpp
@@ -42,6 +42,7 @@
#include "packagemanagergui.h"
#include "tabcontroller.h"
#include "updater.h"
+#include "operationrunner.h"
#include <packagemanagercore.h>
#include <settings.h>
@@ -163,6 +164,13 @@ int main(int argc, char *argv[])
return u.checkForUpdates() ? 0 : 1;
}
+ if (args.contains(QLatin1String("--operation"))
+ || args.contains(QLatin1String("--undooperation"))) {
+ OperationRunner o;
+ o.setVerbose(args.contains(QLatin1String("--verbose")));
+ return o.runOperation(args);
+ }
+
// from here, the "normal" installer binary is running
MyApplication app(argc, argv);