Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/0003-825.patch
diff options
context:
space:
mode:
Diffstat (limited to '0003-825.patch')
-rw-r--r--0003-825.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/0003-825.patch b/0003-825.patch
new file mode 100644
index 0000000..aa9f46e
--- /dev/null
+++ b/0003-825.patch
@@ -0,0 +1,33 @@
+From 25be6bf09a52249332424c325d335e66f21bdd68 Mon Sep 17 00:00:00 2001
+From: Ajay Garg <ajay@activitycentral.com>
+Date: Thu, 15 Mar 2012 12:02:14 +0530
+Subject: [olpc-updater PATCH] au#825: Check for a existence for an already
+ existing "library" bundle; else the
+ corresponding "activity" will be
+ continued to be shown as new in
+ "Software-Update".
+Organization: Sugar Labs Foundation
+Signed-off-by: Ajay Garg <ajay@activitycentral.com>
+---
+ src/model.py | 6 +++++-
+ 1 files changed, 5 insertions(+), 1 deletions(-)
+
+diff --git a/src/model.py b/src/model.py
+index 974c050..60195c7 100755
+--- a/src/model.py
++++ b/src/model.py
+@@ -413,7 +413,11 @@ class UpdateList(gtk.ListStore):
+ zf.getinfo('%s/activity/activity.info' % activity_base)
+ is_activity = True
+ except KeyError:
+- is_activity = False
++ try:
++ zf.getinfo('%s/library/library.info' % activity_base)
++ is_activity = False
++ except:
++ raise RuntimeError ("not activity or library")
+ if is_activity:
+ cp = actutils.activity_info_from_zipfile(zf)
+ SECTION = 'Activity'
+--
+1.7.4.4