control: tags -1 + patch
From d7ba68a48c61199f6a86338a19aa5246f08c3cff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <roucaries.bast...@gmail.com> Date: Wed, 30 Oct 2013 23:31:50 +0100 Subject: [PATCH] Fix an FTBFS by removing escape sequence.
Fix an FTBFS by replacing \\ in tar file list by \. --- lib/Lintian/Collect/Package.pm | 2 +- t/tests/legacy-filenames/tags | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Lintian/Collect/Package.pm b/lib/Lintian/Collect/Package.pm index 4f5a2cb..e7c1fb8 100644 --- a/lib/Lintian/Collect/Package.pm +++ b/lib/Lintian/Collect/Package.pm @@ -324,7 +324,7 @@ sub _dequote_name { $slsd = 1 unless defined $slsd; # Remove initial ./ by default $name =~ s,^\.?/,, if $slsd; $name =~ s/(\G|[^\\](?:\\\\)*)\\(\d{3})/"$1" . chr(oct $2)/ge; - $name =~ s/\\\\/\\/; + $name =~ s/\\\\/\\/g; return $name; } diff --git a/t/tests/legacy-filenames/tags b/t/tests/legacy-filenames/tags index 11f72cf..96a5e36 100644 --- a/t/tests/legacy-filenames/tags +++ b/t/tests/legacy-filenames/tags @@ -100,6 +100,7 @@ W: filenames: file-in-usr-lib-sgml usr/lib/sgml/package W: filenames: file-name-ends-in-whitespace files/'\ W: filenames: file-name-is-not-valid-UTF-8 usr/share/doc/filenames/bokm?l W: filenames: file-name-is-not-valid-UTF-8 usr/share/doc/filenames/bokm\?l +W: filenames: file-name-is-not-valid-UTF-8 usr/share/doc/filenames/bokm\\?l W: filenames: gz-file-not-gzip usr/share/filenames/prototype.js.gz W: filenames: macos-ds-store-file-in-package usr/share/doc/filenames/.DS_Store W: filenames: macos-resource-fork-file-in-package usr/share/doc/filenames/._NEWS.Debian -- 1.8.4.rc3