summaryrefslogtreecommitdiffstats
path: root/installerbuilder
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@nokia.com>2011-08-26 10:02:13 +0200
committerKarsten Heimrich <karsten.heimrich@nokia.com>2011-08-26 10:23:31 +0200
commit576ca298065395421962227cc958cabd4bc110e8 (patch)
treea6c930b4a6c6c0a7c3a80dc47a22e1213ddd93ba /installerbuilder
parentfe2574b112c49724289d9fc7cd5edef1c47c64d2 (diff)
updater can't have a component with uninstallation requested
Change-Id: I9b99a7a8d0a3c55f5ed0049119e1da71773cd32c Reviewed-on: http://codereview.qt.nokia.com/3642 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
Diffstat (limited to 'installerbuilder')
-rw-r--r--installerbuilder/libinstaller/component.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/installerbuilder/libinstaller/component.cpp b/installerbuilder/libinstaller/component.cpp
index 00581b548..3eef1badb 100644
--- a/installerbuilder/libinstaller/component.cpp
+++ b/installerbuilder/libinstaller/component.cpp
@@ -1054,6 +1054,8 @@ bool Component::isUninstalled() const
*/
bool Component::uninstallationRequested() const
{
+ if (packageManagerCore()->isUpdater())
+ return false;
return isInstalled() && !isSelected();
}