[libnet-jifty-perl] 01/08: Add test patch for compatibility with newer Encode.

gregor herrmann gregoa at debian.org
Sun Nov 6 16:50:49 UTC 2016


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libnet-jifty-perl.

commit a5853d89d7640cf25692ddb8c15404b13d534c1b
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun Nov 6 17:26:30 2016 +0100

    Add test patch for compatibility with newer Encode.
    
    Closes: #825608
---
 debian/patches/mime-encode.patch | 53 ++++++++++++++++++++++++++++++++++++++++
 debian/patches/series            |  1 +
 2 files changed, 54 insertions(+)

diff --git a/debian/patches/mime-encode.patch b/debian/patches/mime-encode.patch
new file mode 100644
index 0000000..616e07f
--- /dev/null
+++ b/debian/patches/mime-encode.patch
@@ -0,0 +1,53 @@
+Description: Encode::MIME::HeEader::encode encodes everything with MIME-Q since 2.83.
+ Adjust expected output.
+Origin: vendor
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=112231
+Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=112231
+Bug-Debian: https://bugs.debian.org/825608
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2016-11-06
+
+--- a/t/006-uploads.t
++++ b/t/006-uploads.t
+@@ -33,7 +33,7 @@
+     is( scalar @parts, 1, "has one part" );
+     is $parts[0]->content_type, 'text/plain', 'correct type of the part';
+     is $parts[0]->header('Content-Disposition'),
+-        'form-data; name="file"; filename="test.txt"',
++        'form-data; name="=?UTF-8?Q?file?="; filename="=?UTF-8?Q?test=2Etxt?="',
+         'checked disposition';
+ 
+     is $parts[0]->content, 'stub', 'checked content';
+@@ -58,7 +58,7 @@
+     is( scalar @parts, 1, "has one part" );
+     is $parts[0]->content_type, 'application/octet-stream', 'correct type of the part';
+     is $parts[0]->header('Content-Disposition'),
+-        'form-data; name="file"; filename="test.txt"',
++        'form-data; name="=?UTF-8?Q?file?="; filename="=?UTF-8?Q?test=2Etxt?="',
+         'checked disposition';
+ 
+     is $parts[0]->content, 'stub', 'checked content';
+@@ -87,12 +87,12 @@
+ 
+     is $parts[0]->content_type, 'application/octet-stream', 'correct type of the part';
+     is $parts[0]->header('Content-Disposition'),
+-        'form-data; name="file"; filename="test.txt"',
++        'form-data; name="=?UTF-8?Q?file?="; filename="=?UTF-8?Q?test=2Etxt?="',
+         'checked disposition';
+     is $parts[0]->content, 'stub', 'checked content';
+ 
+     is $parts[1]->header('Content-Disposition'),
+-        'form-data; name="some_arg"',
++        'form-data; name="=?UTF-8?Q?some=5Farg?="',
+         'checked disposition';
+     is $parts[1]->content, 'some_value', 'checked content';
+ }
+@@ -117,7 +117,7 @@
+ 
+     is $parts[0]->content_type, 'application/octet-stream', 'correct type of the part';
+     is $parts[0]->header('Content-Disposition'),
+-        'form-data; name="file"; filename="=?UTF-8?Q?=D1=82=2Ebin?="',
++        'form-data; name="=?UTF-8?Q?file?="; filename="=?UTF-8?Q?=D1=82=2Ebin?="',
+         'checked disposition';
+     is $parts[0]->content, 'stub', 'checked content';
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..81fce95
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+mime-encode.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libnet-jifty-perl.git



More information about the Pkg-perl-cvs-commits mailing list