[Dextrose] [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".

Ajay Garg ajay at activitycentral.com
Thu Mar 15 02:37:04 EDT 2012


diff --git a/extensions/cpsection/updater/model.py b/extensions/cpsection/updater/model.py
index 974c050..60195c7 100755
--- a/extensions/cpsection/updater/model.py
+++ b/extensions/cpsection/updater/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 = True
+                except:
+                    is_activity = False
             if is_activity:
                 cp = actutils.activity_info_from_zipfile(zf)
                 SECTION = 'Activity'
-- 
1.7.4.4



More information about the Dextrose mailing list