From 2b020d6c4efa8e209ca3b9aeeeb390bef413d834 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Wed, 19 Dec 2012 19:18:26 +0000 Subject: Initial release --- (limited to '0003-825.patch') 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 +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 +--- + 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 -- cgit v0.9.1