r24520 - in /desktop/unstable/gnome-games/debian: changelog patches/01_string_exceptions.patch patches/series

pochu at users.alioth.debian.org pochu at users.alioth.debian.org
Mon Jun 14 11:19:39 UTC 2010


Author: pochu
Date: Mon Jun 14 11:19:38 2010
New Revision: 24520

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=24520
Log:
* debian/patches/01_string_exceptions.patch:
  - Backported from upstream, don't use string exceptions, they are not
    supported in Python 2.6. Closes: #585227.

Added:
    desktop/unstable/gnome-games/debian/patches/01_string_exceptions.patch
Modified:
    desktop/unstable/gnome-games/debian/changelog
    desktop/unstable/gnome-games/debian/patches/series

Modified: desktop/unstable/gnome-games/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-games/debian/changelog?rev=24520&op=diff
==============================================================================
--- desktop/unstable/gnome-games/debian/changelog [utf-8] (original)
+++ desktop/unstable/gnome-games/debian/changelog [utf-8] Mon Jun 14 11:19:38 2010
@@ -1,3 +1,11 @@
+gnome-games (1:2.30.1-2) UNRELEASED; urgency=low
+
+  * debian/patches/01_string_exceptions.patch:
+    - Backported from upstream, don't use string exceptions, they are not
+      supported in Python 2.6. Closes: #585227.
+
+ -- Emilio Pozuelo Monfort <pochu at debian.org>  Mon, 14 Jun 2010 13:15:27 +0200
+
 gnome-games (1:2.30.1-1) unstable; urgency=low
 
   * New upstream release.

Added: desktop/unstable/gnome-games/debian/patches/01_string_exceptions.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-games/debian/patches/01_string_exceptions.patch?rev=24520&op=file
==============================================================================
--- desktop/unstable/gnome-games/debian/patches/01_string_exceptions.patch (added)
+++ desktop/unstable/gnome-games/debian/patches/01_string_exceptions.patch [utf-8] Mon Jun 14 11:19:38 2010
@@ -1,0 +1,23 @@
+From fb068adb334e41bfbca762e38ecfcea433c0c57c Mon Sep 17 00:00:00 2001
+From: Robert Ancell <robert.ancell at gmail.com>
+Date: Wed, 09 Jun 2010 23:42:41 +0000
+Subject: Use standard Python exception syntax (Bug #620032)
+
+---
+diff --git a/gnome-sudoku/src/lib/pausable.py b/gnome-sudoku/src/lib/pausable.py
+index c8853c7..1787ecd 100644
+--- a/gnome-sudoku/src/lib/pausable.py
++++ b/gnome-sudoku/src/lib/pausable.py
+@@ -55,10 +55,10 @@ class PausableWrapper (MethodWrapper):
+ 
+     def wrapper (self, cls, *args, **kwargs):
+         if cls.terminated:
+-            raise "Terminated!"
++            raise Exception("Terminated!")
+         while cls.paused:
+             if cls.terminated:
+-                raise "Terminated!"
++                raise Exception("Terminated!")
+             time.sleep(self.sleep_for)
+ 
+ 

Modified: desktop/unstable/gnome-games/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-games/debian/patches/series?rev=24520&op=diff
==============================================================================
--- desktop/unstable/gnome-games/debian/patches/series [utf-8] (original)
+++ desktop/unstable/gnome-games/debian/patches/series [utf-8] Mon Jun 14 11:19:38 2010
@@ -1,3 +1,4 @@
+01_string_exceptions.patch
 02_desktop-path.patch
 10_libice.patch
 #20_glchess_no3d.patch




More information about the pkg-gnome-commits mailing list