diff options
author | kh1 <karsten.heimrich@nokia.com> | 2011-10-04 12:46:04 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@nokia.com> | 2011-10-04 13:52:21 +0200 |
commit | f06c311b10bc33a64249db7be331a8f9267c2ddb (patch) | |
tree | 0854acbbe3335ed24cc44a9fc503b104ebef5924 /installerbuilder/installerbase/installerbase.cpp | |
parent | 763a7c5e63423935568a6414b84b9762ec32f603 (diff) |
Implement mechanism to update the maintenace tool.
Have an option to update the maintenace tool without using
the full installer binary. This can be used as fallback in
case the updater/ package manger won't start anymore.
Change-Id: I36be195203cb0172484d739c9f14a2e073ab7792
Reviewed-on: http://codereview.qt-project.org/5885
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
Diffstat (limited to 'installerbuilder/installerbase/installerbase.cpp')
-rw-r--r-- | installerbuilder/installerbase/installerbase.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/installerbuilder/installerbase/installerbase.cpp b/installerbuilder/installerbase/installerbase.cpp index 26a75b9be..f8473021f 100644 --- a/installerbuilder/installerbase/installerbase.cpp +++ b/installerbuilder/installerbase/installerbase.cpp @@ -135,6 +135,14 @@ int main(int argc, char *argv[]) return o.runOperation(args); } + if (args.contains(QLatin1String("--update-installerbase"))) { + MyCoreApplication app(argc, argv); + if (runCheck.isRunning(KDRunOnceChecker::ProcessList)) + return 0; + + return InstallerBase().replaceMaintenanceToolBinary(args); + } + // from here, the "normal" installer binary is running MyApplication app(argc, argv); |