[gtg] Add patch for crash bug 841179 (lp bug 744294)
Yanko Kaneti
yaneti at fedoraproject.org
Wed Jul 18 11:59:19 UTC 2012
commit 84e893f2690cc06cb6fe288af77b123a0552d9e8
Author: Yanko Kaneti <yaneti at declera.com>
Date: Wed Jul 18 14:53:31 2012 +0300
Add patch for crash bug 841179 (lp bug 744294)
gtg-0.2.4-lp-bug-744249.patch | 25 +++++++++++++++++++++++++
gtg.spec | 11 +++++++++--
2 files changed, 34 insertions(+), 2 deletions(-)
---
diff --git a/gtg-0.2.4-lp-bug-744249.patch b/gtg-0.2.4-lp-bug-744249.patch
new file mode 100644
index 0000000..89b86a0
--- /dev/null
+++ b/gtg-0.2.4-lp-bug-744249.patch
@@ -0,0 +1,25 @@
+=== modified file 'GTG/core/task.py'
+--- GTG/core/task.py 2010-03-01 21:02:06 +0000
++++ GTG/core/task.py 2011-10-19 07:37:38 +0000
+@@ -576,12 +576,13 @@
+ #remove by tagname
+ def remove_tag(self, tagname):
+ t = self.req.get_tag(tagname)
+- t.remove_task(self.get_id())
+- if t in self.tags:
+- self.tags.remove(t)
+- for child in self.get_subtasks():
+- if child.can_be_deleted:
+- child.remove_tag(tagname)
++ if t:
++ t.remove_task(self.get_id())
++ if t in self.tags:
++ self.tags.remove(t)
++ for child in self.get_subtasks():
++ if child.can_be_deleted:
++ child.remove_tag(tagname)
+ self.content = self._strip_tag(self.content, tagname)
+
+ def _strip_tag(self, text, tagname):
+
+
diff --git a/gtg.spec b/gtg.spec
index 094389c..07fe9f0 100644
--- a/gtg.spec
+++ b/gtg.spec
@@ -3,7 +3,7 @@
Name: gtg
Version: 0.2.4
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: Personal organizer for the GNOME desktop
Group: Applications/Productivity
@@ -23,6 +23,9 @@ Patch1: gtg-0.2.4-714.patch
# changed a lot upstream will revisit when it gets released
Patch2: gtg-0.2.4-dragworkaround.patch
+# lp bug https://bugs.launchpad.net/gtg/+bug/744294
+Patch3: gtg-0.2.4-lp-bug-744249.patch
+
BuildRequires: python-devel
BuildRequires: gettext
BuildRequires: desktop-file-utils
@@ -42,6 +45,7 @@ used as more than just GTD software.
%patch0 -p0 -b .tryX
%patch1 -p0 -b .714
%patch2 -p1 -b .dragworkaround
+%patch3 -p0 -b .lp-744294
sed -i -e "s|#!/usr/bin/env python||" GTG/gtg.py
@@ -89,7 +93,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
-* Thu Jun 14 2012 Yanko Kaneti <yaneti at declera.com> 0.2.4-6
+* Wed Jul 18 2012 Yanko Kaneti <yaneti at declera.com> 0.2.4-8
+- Add patch for crash bug 841179 (lp bug 744294)
+
+* Thu Jun 14 2012 Yanko Kaneti <yaneti at declera.com> 0.2.4-7
- Remove the geolocalized_tasks plugin which uses pyclutter,
which uses gtk3. Bug #817841
More information about the scm-commits
mailing list