Package: apt-file
Version: 2.4.2
Tags: patch
User: debian-pyt...@lists.debian.org
Usertags: python2.6

In Python 2.6, module installation directory has changed from /usr/lib/python2.X/site-packages/ to .../dist-packages/. python-apt 0.7.100.2 dropped support for Python 2.5, which broke rapt-file.

See the attached patch for the fix. I also changed "python*" to "python2.*", as rapt-file is not compatible with Python 3.

--
Jakub Wilk
Index: rapt-file.wrapper
===================================================================
--- rapt-file.wrapper	(revision 18324)
+++ rapt-file.wrapper	(working copy)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-if [ -n "$(ls /usr/lib/python*/site-packages/apt/__init__.py 2> /dev/null)" ] ; then
+if [ -n "$(ls /usr/lib/python2.*/*-packages/apt/__init__.py 2> /dev/null)" ] ; then
 	exec /usr/share/apt-file/rapt-file "$@"
 else
 	echo You need to install python-apt to use rapt-file >&2

Reply via email to