summaryrefslogtreecommitdiffstats
path: root/installerbuilder
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@nokia.com>2011-11-09 16:37:07 +0100
committerKarsten Heimrich <karsten.heimrich@nokia.com>2011-11-09 16:50:27 +0100
commit4acdf021c7a5a2e65a85262c606d037106175308 (patch)
tree8abc177ceded1c51b4a367a6c05e9837095a0f39 /installerbuilder
parent9f0d3d99f4bf5fa124ccbbfdb035c6b1ab86fc83 (diff)
Fix 5d9fa6ed0eb13a63aed63fe5642db3e1b3936b8b.
If we install a component with essential tag, remember to restart to. It's not sufficient to do this in write un-installer, as this will only be called if the ui shuts down. Change-Id: I1188254d94cb83c2cdffd5cfa04e4da0b2e9ecdb Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
Diffstat (limited to 'installerbuilder')
-rw-r--r--installerbuilder/libinstaller/packagemanagercore_p.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/installerbuilder/libinstaller/packagemanagercore_p.cpp b/installerbuilder/libinstaller/packagemanagercore_p.cpp
index 1f7dfae8e..b82aa34e4 100644
--- a/installerbuilder/libinstaller/packagemanagercore_p.cpp
+++ b/installerbuilder/libinstaller/packagemanagercore_p.cpp
@@ -1581,6 +1581,9 @@ void PackageManagerCorePrivate::installComponent(Component *component, double pr
if (!ok && !ignoreError)
throw Error(operation->errorString());
+
+ if (component->value(scEssential, scFalse) == scTrue)
+ m_forceRestart = true;
}
registerPathesForUninstallation(component->pathesForUninstallation(), component->name());