On Tue, 02 Nov 2010 09:46:22 +0100, Carlo Dormeletti wrote:

> The program won't start same as #597513, same solution modify a line in
> /usr/lib/gdesklets/utils/ErrorFormatter.py
> 
> follwing:
> # 09/08/09:per article=http://forums.opensuse.org/applications/409465-fix-
> gdesklets.html
> #def _new_imp(name, globs = {}, locls = {}, fromlist = []):
> def _new_imp(name, globs = {}, locls = {}, fromlist = [], test = []):
> 
> It now works.

I tried to create a proper patch for this change; while doing so I
realized that there is already a patch in the source package that
touches exactly these lines but it's not applied (technically it's
applied but it only creates another patch file that doesn't get
applied).

I've now fixed the original patch (s. attachment); could someone who
knows more about python and gnome take a look at it and test it?

Cheers,
gregor

-- 
 .''`.   http://info.comodo.priv.at/ -- GPG key IDs: 0x8649AA06, 0x00F3CFE4
 : :' :  Debian GNU/Linux user, admin, & developer - http://www.debian.org/
 `. `'   Member of VIBE!AT & SPI, fellow of Free Software Foundation Europe
   `-    NP: Andre Heller: Für immer jung
diff -u gdesklets-0.36.1/debian/changelog gdesklets-0.36.1/debian/changelog
--- gdesklets-0.36.1/debian/changelog
+++ gdesklets-0.36.1/debian/changelog
@@ -1,3 +1,12 @@
+gdesklets (0.36.1-4.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Fix "won't start": repair debian/patches/01_python2.6.patch: at the moment
+    it just creates a debian/patches/10_python2.6.patch file which never gets
+    applied (closes: #602171).
+
+ -- gregor herrmann <gre...@debian.org>  Sat, 13 Nov 2010 16:49:28 +0100
+
 gdesklets (0.36.1-4) unstable; urgency=low
 
   * debian/patches/01_python2.6.patch:
diff -u gdesklets-0.36.1/debian/patches/01_python2.6.patch gdesklets-0.36.1/debian/patches/01_python2.6.patch
--- gdesklets-0.36.1/debian/patches/01_python2.6.patch
+++ gdesklets-0.36.1/debian/patches/01_python2.6.patch
@@ -1,23 +1,20 @@
+Description: Fix exception when running under python2.6. Patch from Ubuntu, commited upstream.
+Origin: https://bugs.launchpad.net/gdesklets/+bug/344079
+Forwarded: http://bazaar.launchpad.net/~gdesklets-core-team/gdesklets/0.3x/revision/118
 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561645
 
---- gdesklets-0.36.1.orig/debian/patches/10_python2.6.patch
-+++ gdesklets-0.36.1/debian/patches/10_python2.6.patch
-@@ -0,0 +1,18 @@
-+Description: Fix exception when running under python2.6. Patch from Ubuntu, commited upstream.
-+Origin: https://bugs.launchpad.net/gdesklets/+bug/344079
-+Forwarded: http://bazaar.launchpad.net/~gdesklets-core-team/gdesklets/0.3x/revision/118
-+diff -Nur -x '*.orig' -x '*~' gdesklets-0.36.1-2ubuntu1/utils/ErrorFormatter.py gdesklets-0.36.1-2ubuntu1.new/utils/ErrorFormatter.py
-+--- gdesklets-0.36.1-2ubuntu1/utils/ErrorFormatter.py	2009-03-25 11:53:35.000000000 -0400
-++++ gdesklets-0.36.1-2ubuntu1.new/utils/ErrorFormatter.py	2009-05-12 13:38:39.000000000 -0400
-+@@ -113,9 +113,9 @@
-+ # give us an absolute path.
-+ #
-+ _old_imp = __import__
-+-def _new_imp(name, globs = {}, locls = {}, fromlist = []):
-++def _new_imp(*args, **kwargs):
-+ 
-+-    module = _old_imp(name, globs, locls, fromlist)
-++    module = _old_imp(*args, **kwargs)
-+     # builtin modules have no "__file__" attribute, so we have to check for it
-+     if (module):
-+         if (hasattr(module, "__file__")):
+diff -Nur -x '*.orig' -x '*~' gdesklets-0.36.1-2ubuntu1/utils/ErrorFormatter.py gdesklets-0.36.1-2ubuntu1.new/utils/ErrorFormatter.py
+--- gdesklets-0.36.1-2ubuntu1/utils/ErrorFormatter.py	2009-03-25 11:53:35.000000000 -0400
++++ gdesklets-0.36.1-2ubuntu1.new/utils/ErrorFormatter.py	2009-05-12 13:38:39.000000000 -0400
+@@ -113,9 +113,9 @@
+ # give us an absolute path.
+ #
+ _old_imp = __import__
+-def _new_imp(name, globs = {}, locls = {}, fromlist = []):
++def _new_imp(*args, **kwargs):
+ 
+-    module = _old_imp(name, globs, locls, fromlist)
++    module = _old_imp(*args, **kwargs)
+     # builtin modules have no "__file__" attribute, so we have to check for it
+     if (module):
+         if (hasattr(module, "__file__")):

Attachment: signature.asc
Description: Digital signature

Reply via email to