Package: linda
Version: 0.3.25
Severity: important
Tags: patch

The change introduced in 0.3.25 triggers the following exception:

[EMAIL PROTECTED]:~/src$ linda ktorrent_2.1.4.dfsg.1-2_amd64.changes
heck LibraryCheck failed. Exception TypeError thrown (expected string or 
buffer).
[EMAIL PROTECTED]:~/src$

Attached patch fixes the problem.


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.20-1-amd64 (SMP w/1 CPU core)
Locale: LANG=lt_LT, LC_CTYPE=lt_LT (charmap=ISO-8859-13)
Shell: /bin/sh linked to /bin/bash

Versions of packages linda depends on:
ii  binutils               2.17cvs20070426-8 The GNU assembler, linker and bina
ii  dash                   0.5.3-8           The Debian Almquist Shell
ii  dpkg-dev               1.14.4            package building tools for Debian
ii  file                   4.21-1            Determines file type using "magic"
ii  man-db                 2.4.4-3           The on-line manual pager
ii  python                 2.4.4-6           An interactive high-level object-o
ii  python-support         0.6.4             automated rebuilding support for p

Versions of packages linda recommends:
pn  debian-policy                 <none>     (no description available)

-- no debconf information
diff -uNr -x debian -x .pc linda-0.3.25/checks/library.py 
linda-0.3.25.n/checks/library.py
--- linda-0.3.25/checks/library.py      2007-02-08 16:41:43.000000000 +0200
+++ linda-0.3.25.n/checks/library.py    2007-06-16 12:42:05.000000000 +0300
@@ -46,7 +46,7 @@
                     cur_soname = obj[obj.find('SONAME'):obj.find('\n', \
                         obj.find('SONAME'))].split()[-1].split('.')[0]
                     if "-" in cur_soname:
-                        cur_soname = cur_soname.rsplit('-', 1)
+                        cur_soname = cur_soname.rsplit('-', 1)[0]
                     if cur_soname:
                         self.libraries[file] = cur_soname
                 del obj

Reply via email to