[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#631530: lintian: python-debug-in-wrong-location reports filenames with "/" prefix



Package: lintian
Version: 2.5.1
Severity: minor
Tags: patch

Please see the attached patch.

--
Jakub Wilk
diff --git a/checks/files b/checks/files
--- a/checks/files
+++ b/checks/files
@@ -467,7 +467,7 @@
 
 	    if ($index_info->{type} =~ m/^[-h]/o &&
 		$file =~ m,^usr/lib/debug/usr/lib/pyshared/(python\d?(?:\.\d+))/(.++)$,o){
-		my $correct = "/usr/lib/debug/usr/lib/pymodules/$1/$2";
+		my $correct = "usr/lib/debug/usr/lib/pymodules/$1/$2";
 		tag 'python-debug-in-wrong-location', $file, $correct;
 	    }
 	}
diff --git a/t/tests/files-python-general/tags b/t/tests/files-python-general/tags
--- a/t/tests/files-python-general/tags
+++ b/t/tests/files-python-general/tags
@@ -2,5 +2,5 @@
 E: python-kinterbasdb: package-installs-python-bytecode usr/share/python-kinterbasdb/code.pyo
 E: python-kinterbasdb: package-installs-python-egg usr/share/python-kinterbasdb/python.egg
 E: python-kinterbasdb: package-installs-python-pycache-dir usr/share/python-kinterbasdb/__pycache__/
-W: python-kinterbasdb-dbg: python-debug-in-wrong-location usr/lib/debug/usr/lib/pyshared/python2.7/python-module.so /usr/lib/debug/usr/lib/pymodules/python2.7/python-module.so
+W: python-kinterbasdb-dbg: python-debug-in-wrong-location usr/lib/debug/usr/lib/pyshared/python2.7/python-module.so usr/lib/debug/usr/lib/pymodules/python2.7/python-module.so
 W: python-kinterbasdb: compressed-objects.inv usr/share/doc/python-kinterbasdb/docs/objects.inv.gz

Reply to: