Comment 3 for bug 610570

Revision history for this message
Fabien Tassin (fta) wrote :

before:

>>> from pysnmp.entity.rfc3413.oneliner import cmdgen
/usr/lib/pymodules/python2.6/pysnmp/v4/proto/secmod/rfc3414/auth/hmacmd5.py:1: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import string, md5
/usr/lib/pymodules/python2.6/pysnmp/v4/proto/secmod/rfc3414/auth/hmacsha.py:1: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import string, sha
>>>

and for the rebuild issue (without the 2nd fix):

Preparing to replace python-pysnmp-common 4.1.9a-1 (using .../python-pysnmp-common_4.1.9a-1+rebuild_all.deb) ...
Unpacking replacement python-pysnmp-common ...
Preparing to replace python-pysnmp4 4.1.9a-1 (using .../python-pysnmp4_4.1.9a-1+rebuild_all.deb) ...
Unpacking replacement python-pysnmp4 ...
dpkg: error processing /var/cache/apt/archives/python-pysnmp4_4.1.9a-1+rebuild_all.deb (--unpack):
 trying to overwrite '/usr/share/pyshared/pysnmp/__init__.py', which is also in package python-pysnmp-common 0:4.1.9a-1+rebuild
dpkg-deb: subprocess paste killed by signal (Broken pipe)

$ dpkg -c /var/cache/apt/archives/python-pysnmp4_4.1.9a-1+rebuild_all.deb | grep pysnmp/__init__.py
-rw-r--r-- root/root 844 2006-12-13 21:23 ./usr/share/pyshared/pysnmp/__init__.py
$ dpkg -c /var/cache/apt/archives/python-pysnmp-common_4.1.9a-1+rebuild_all.deb | grep pysnmp/__init__.py
-rw-r--r-- root/root 844 2006-12-13 21:23 ./usr/share/pyshared/pysnmp/__init__.py

after, both issues are fixed