Your message dated Sat, 04 Feb 2006 07:02:12 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bug#345231: fixed in freeloader 0.3-4
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
>From [EMAIL PROTECTED] Thu Dec 29 11:50:58 2005
Received: (at submit) by bugs.debian.org; 29 Dec 2005 19:50:58 +0000
Return-path: <[EMAIL PROTECTED]>
Received: from multani.info ([82.230.120.95])
        by spohr.debian.org with esmtp (Exim 4.50)
        id 1Es3ne-0004x0-79
        for [EMAIL PROTECTED]; Thu, 29 Dec 2005 11:50:58 -0800
Received: from localhost.localdomain (unknown [192.168.0.2])
        by multani.info (Postfix) with ESMTP id EB32438CB;
        Thu, 29 Dec 2005 20:50:33 +0100 (CET)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Jonathan Ballet <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: freeloader: unhandled exception when exiting with python2.3
Message-ID: <[EMAIL PROTECTED]>
X-Mailer: reportbug 3.18
Date: Thu, 29 Dec 2005 20:50:26 +0100
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: freeloader
Version: 0.3-3
Severity: normal
Tags: patch

I got an exception when exiting freeloader :

[EMAIL PROTECTED]:~$ freeloader
Exception in thread Thread-1:Traceback (most recent call last):
  File "/usr/lib/python2.3/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/share/freeloader/sockdae.py", line 116, in run
    self.sock.shutdown(socket.SHUT_RDWR)
AttributeError: 'module' object has no attribute 'SHUT_RDWR'


It appears that SHUT_RDWR doesn't exist in Python 2.3. Instead, it should try 
to use socket.SHUT_RDWR and fallback to 2 if it
can't. See attached file for a dirty fix (there may be better solution).


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-2-amd64-k8
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages freeloader depends on:
ii  bittorrent                    3.4.2-6    Scatter-gather network file transf
ii  librsvg2-2                    2.9.5-6    SAX-based renderer library for SVG
ii  python                        2.3.5-3    An interactive high-level object-o
ii  python-glade2                 2.6.3-2    GTK+ bindings: Glade support
ii  python-gnome2                 2.10.0-4   Python bindings for the GNOME desk
ii  python-gtk2                   2.6.3-2    Python bindings for the GTK+ widge

Versions of packages freeloader recommends:
pn  python-gamin                  <none>     (no description available)
ii  python-gnome2-extras          2.10.2-1   Python bindings for the GNOME desk

-- no debconf information

*** sockdae.py.patch
--- /usr/share/freeloader/sockdae.py    2005-12-29 15:46:43.000000000 +0100
+++ sockdae.py  2005-12-29 20:44:45.000000000 +0100
@@ -83,18 +83,23 @@
                                if self.killflag.isSet():
                                        break
                                continue
-
+                       
+                       try:
+                               shutdown_value = socket.SHUT_RDWR
+                       except AttributeError:
+                               shutdown_value = 2 # python2.3 fix
+                       
                        key = self.read_expected(c, 5)
                        flags = self.read_expected(c, 10)
                        count = self.parse_flags(flags)
                        if count > 0:
-                               c.shutdown(socket.SHUT_RDWR)
+                               c.shutdown(shutdown_value)
                                c.close()
                                continue
 
                        if cmp(key,self.key) != 0:
                                print "Ineligible connection with key " + key
-                               c.shutdown(socket.SHUT_RDWR)
+                               c.shutdown(shutdown_value)
                                c.close()
                        else:
                                f = c.recv(1024)
@@ -108,12 +113,12 @@
                                        except:
                                                break;
 
-                               c.shutdown(socket.SHUT_RDWR)
+                               c.shutdown(shutdown_value)
                                c.close()
 
                                self.handle_file(file)
 
-               self.sock.shutdown(socket.SHUT_RDWR)
+               self.sock.shutdown(shutdown_value)
                self.sock.close()
 
        def handle_file(self, uri):


--- End Message ---
--- Begin Message ---
>From [EMAIL PROTECTED] Sat Feb 04 07:10:19 2006
Received: (at 345231-close) by bugs.debian.org; 4 Feb 2006 15:10:19 +0000
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 4.50)
        id 1F5OvU-0001ST-AW; Sat, 04 Feb 2006 07:02:12 -0800
From: Julien Valroff <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.65 $
Subject: Bug#345231: fixed in freeloader 0.3-4
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Sat, 04 Feb 2006 07:02:12 -0800
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: freeloader
Source-Version: 0.3-4

We believe that the bug you reported is fixed in the latest version of
freeloader, which is due to be installed in the Debian FTP archive:

freeloader_0.3-4.diff.gz
  to pool/main/f/freeloader/freeloader_0.3-4.diff.gz
freeloader_0.3-4.dsc
  to pool/main/f/freeloader/freeloader_0.3-4.dsc
freeloader_0.3-4_all.deb
  to pool/main/f/freeloader/freeloader_0.3-4_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Julien Valroff <[EMAIL PROTECTED]> (supplier of updated freeloader package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 30 Dec 2005 19:30:22 +0100
Source: freeloader
Binary: freeloader
Architecture: source all
Version: 0.3-4
Distribution: unstable
Urgency: high
Maintainer: Julien Valroff <[EMAIL PROTECTED]>
Changed-By: Julien Valroff <[EMAIL PROTECTED]>
Description: 
 freeloader - A nice GNOME download manager supporting torrents
Closes: 345231 345596 345597
Changes: 
 freeloader (0.3-4) unstable; urgency=high
 .
   * Fixed unhandled exception when exiting with python2.3 (Closes: #345231)
   * Increased dependency to python-gnome2 to version >=2.10 (Closes: #345596)
   * Completed man page (Closes: #345597)
   * Fixed recommendation to python2.3-gamin
   * Changed architecture to all
   * High priority due to RC bugs
Files: 
 f389ffb51b2840702c0b5f3f66988478 708 net optional freeloader_0.3-4.dsc
 84023be446c2cd070a9bb054398cb1c8 5830 net optional freeloader_0.3-4.diff.gz
 e59140b44aeb6e624c2bd56ffa48e337 38590 net optional freeloader_0.3-4_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFD5MA4rSbtgqbIBbkRAlsiAKC51yt12+QjAcEUdX4LJqUFd1nZLACdEf6s
xNF5T1HLuuNGOFlHXb/p/fw=
=+hi9
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to