[Dextrose] [PATCH 50/54] updater: Only pre-select already installed activities (fixes SL#2822, AU#383)

Anish Mangal anish at sugarlabs.org
Tue Nov 8 12:47:02 EST 2011


From: Ajay Garg <ajaygargnsit at gmail.com>

OLPC AU uses the software updater to offer easy installing of optional
activities. For this to work properly new activities must not be selected by
default.

Signed-off-by: Ajay Garg <ajay at sugarlabs.org>
[adjusted description, split off unrelated bug fixes, set default value]
Signed-off-by: Sascha Silbe <silbe at activitycentral.com>
Signed-off-by: Anish Mangal <anish at sugarlabs.org>
---
 extensions/cpsection/updater/view.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/extensions/cpsection/updater/view.py b/extensions/cpsection/updater/view.py
index 559ab8d..891f552 100644
--- a/extensions/cpsection/updater/view.py
+++ b/extensions/cpsection/updater/view.py
@@ -358,10 +358,11 @@ class UpdateListModel(gtk.ListStore):
         for bundle_update in model.updates:
             row = [None] * 5
             row[self.BUNDLE_ID] = bundle_update.bundle.get_bundle_id()
-            row[self.SELECTED] = True
+            row[self.SELECTED] = False
             row[self.ICON_FILE_NAME] = bundle_update.bundle.get_icon()
 
             if bundle_update.package_type == 'update':
+                row[self.SELECTED] = True
                 details = _('From version %(current)s to %(new)s (Size: %(size)s)')
                 details = details % \
                         {'current': bundle_update.bundle.get_activity_version(),
-- 
1.7.4.4



More information about the Dextrose mailing list