Package: python-apport Version: 2.12.6-1 Severity: important Tags: patch -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Hi, The file location for dpkg-divert is /usr/bin and packaging_impl.py expects to find dpkg-divert in /usr/sbin. I'm attaching a simple patch. Thanks. - -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages python-apport depends on: ii lsb-release 4.1+Debian12 ii python 2.7.5-5 ii python-apt 0.9.3.3 ii python-problem-report 2.12.6-1 Versions of packages python-apport recommends: ii apport 2.12.6-1 python-apport suggests no packages. - -- no debconf information - -- debsums errors found: debsums: changed file /usr/share/pyshared/apport/packaging_impl.py (from python-apport package) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJTKWYIAAoJEMcZdpmymyMq0WcQAJ78LlXz7kPVEu4Hv3rlhoOs LTuyEAbo587Qo5GCUhHcZVrKoXlvdjd4atEuDT5JnFoH5evFhlUsYk5xgj8EjxTG gu23b8XhqPxdkYjGp6hQ1vFwxc/W32Tp9cSV+T51Ocw66NR9BGGXzVk9mNKVxjvF yj2z3ry9tR7A+SrkIAV3w7daE7ZnV1yPpzUfc9VpZ0olLhv7Pb1MhUi83lV7y3Ey O+FuuhR5djhaaipW4Z2wIsjV+FqWHCGNTJb9qmNH6E+Xz+JAOZzPMRFGAbKbtzpA 97ri+h3ZUHUK57hVOh6AEK61fmh0WzWNQu4JmRgruNFJp+cundBNzLcyz8QYvQuN 3CvNXvrldSdWPPsUpAANnYQ+n4Ok7B0BKdfwipC1sKel38i8+41Gz+3cjp6KZFOw zf23GQKj6MwalIprYUPZyhr89TLkHuplhnUTxS8hCJLQiP0RXGtsM9t2JqxIh8R/ FDni4OKuZrppQ76NDCGQju9PUjERPP6n1+WMCxMJG0MVcoZOEYvSsk0X/KhHrcCg RFKg6/b7z/gC8iCYvXMlbNIYkubrUaqNjdb2+l8F2Bbqshl03WZ6sDpCtLjNtWxg oPibyAlxeIAd/FVQnYhTeu2eYkEnvwLQjK1z15vM3RH+OpxE8z3ebkmoXbsVU6Lb nJyOm6YtbBUqFK3rw/jS =r4WZ -----END PGP SIGNATURE-----
Index: python3-apport/backends/packaging-apt-dpkg.py =================================================================== --- python3-apport.orig/backends/packaging-apt-dpkg.py 2014-03-12 19:54:23.070733762 +0100 +++ python3-apport/backends/packaging-apt-dpkg.py 2014-03-12 19:56:34.845442860 +0100 @@ -337,7 +337,7 @@ instead of the one from the current system. ''' # check if the file is a diversion - dpkg = subprocess.Popen(['/usr/sbin/dpkg-divert', '--list', file], + dpkg = subprocess.Popen(['dpkg-divert', '--list', file], stdout=subprocess.PIPE, stderr=subprocess.PIPE) out = dpkg.communicate()[0].decode('UTF-8') if dpkg.returncode == 0 and out: