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
diff options
context:
space:
mode:
Diffstat (limited to 'rpms/sugar/0062-updater-Only-pre-select-already-installed-activities.patch')
-rw-r--r--rpms/sugar/0062-updater-Only-pre-select-already-installed-activities.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/rpms/sugar/0062-updater-Only-pre-select-already-installed-activities.patch b/rpms/sugar/0062-updater-Only-pre-select-already-installed-activities.patch
new file mode 100644
index 0000000..5135637
--- /dev/null
+++ b/rpms/sugar/0062-updater-Only-pre-select-already-installed-activities.patch
@@ -0,0 +1,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
+