Package: python-pysnmp-common
Version: 4.1.6a-1
Severity: normal
File: /usr/share/python-support/pysnmp-common/pysnmp/__init__.py
Tags: patch
python-pysnmp-common is equipped with a nice system which is supposed to
choose the most recent version of the library if more than one is
available. However, right now it chooses the most old version available
since the list of available versions is first sorted in increasing
version order, then reversed, and then the last element is picked.
The attached one-liner patch fixes the problem avoiding the reverse
pass.
Cheers.
PS I'm packaging python-pysnmp-se, which is basically python-pysnmp3,
hence I'm hooking on the python-pysnmp-common version choice mechanism
too. JFYI.
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Versions of packages python-pysnmp-common depends on:
ii python 2.4.4-2 An interactive high-level object-o
ii python-support 0.5.6 automated rebuilding support for p
Versions of packages python-pysnmp-common recommends:
ii python-pysnmp4 4.1.6a-1 Python SNMP library for agents and
-- no debconf information
--- __init__.py.orig 2007-03-15 18:15:11.000000000 +0100
+++ __init__.py 2007-03-15 18:15:24.000000000 +0100
@@ -18,7 +18,7 @@
return 1
subDirs = filter(__isSubPackage, os.listdir(__path__[0]))
-subDirs.sort(); subDirs.reverse()
+subDirs.sort()
if os.environ.has_key('PYSNMP_API_VERSION'):
v = os.environ['PYSNMP_API_VERSION']