Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/rpms/sugar/0062-updater-Only-pre-select-already-installed-activities.patch
blob: 51356378f8b6205663e10616b91448a582e59c18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From f20db12c6428f4124fd9feac7828f0a2ffa740a9 Mon Sep 17 00:00:00 2001
From: Ajay Garg <ajaygargnsit@gmail.com>
Date: Fri, 9 Sep 2011 17:21:50 +0000
Subject: [PATCH sugar 62/74] updater: Only pre-select already installed
 activities (fixes SL#2822, AU#383)

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@sugarlabs.org>
[adjusted description, split off unrelated bug fixes, set default value]
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
---
 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 @@ def __init__(self, model):
         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.6