[SCM] Debian packaging of libwww-mechanize-autopager-perl branch, master, updated. f89bb0308cacf91f1dc77d6fb6074e77bf23dffd

gregor herrmann gregoa at debian.org
Mon Aug 8 16:50:28 UTC 2011


The following commit has been merged in the master branch:
commit ea578b07ecbbb8c190599d3749812201ab5d462d
Author: gregor herrmann <gregoa at debian.org>
Date:   Mon Aug 8 18:39:30 2011 +0200

    Stop using WWW::Mechanize::DecodedContent: add a patch and adjust the
    (build) dependencies.
    
    Closes: #636690

diff --git a/debian/control b/debian/control
index 38bba1d..a7805f9 100644
--- a/debian/control
+++ b/debian/control
@@ -4,8 +4,7 @@ Priority: optional
 Build-Depends: debhelper (>= 7)
 Build-Depends-Indep: libhtml-autopagerize-perl,
  libjson-perl (>= 2.09),
- libwww-mechanize-decodedcontent-perl,
- libwww-mechanize-perl,
+ libwww-mechanize-perl (>= 1.50),
  perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: TANIGUCHI Takaki <takaki at debian.org>
@@ -19,8 +18,7 @@ Architecture: all
 Depends: ${misc:Depends}, ${perl:Depends},
  libhtml-autopagerize-perl,
  libjson-perl (>= 2.09),
- libwww-mechanize-decodedcontent-perl,
- libwww-mechanize-perl,
+ libwww-mechanize-perl (>= 1.50),
  perl
 Description: Automatic Pagination using AutoPagerize
  WWW::Mechanize::AutoPager is a plugin for WWW::Mechanize to do automatic
diff --git a/debian/patches/drop-www-mechanize-decodedcontent.patch b/debian/patches/drop-www-mechanize-decodedcontent.patch
new file mode 100644
index 0000000..11f4c57
--- /dev/null
+++ b/debian/patches/drop-www-mechanize-decodedcontent.patch
@@ -0,0 +1,58 @@
+Description: drop WWW::Mechanize::DecodedContent, WWW::Mechanize's content() decodes since 1.50
+Origin: vendor
+Bug-Debian: http://bugs.debian.org/636690
+Forwarded: no
+Author: gregor herrmann <gregoa at debian.org>
+
+--- a/META.yml
++++ b/META.yml
+@@ -18,7 +18,6 @@
+ requires: 
+   HTML::AutoPagerize: 0
+   JSON: 2.09
+-  WWW::Mechanize: 0
+-  WWW::Mechanize::DecodedContent: 0
++  WWW::Mechanize: 1.50
+   perl: 5.8.1
+ version: 0.02
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -3,8 +3,7 @@
+ all_from 'lib/WWW/Mechanize/AutoPager.pm';
+ 
+ requires 'HTML::AutoPagerize';
+-requires 'WWW::Mechanize';
+-requires 'WWW::Mechanize::DecodedContent';
++requires 'WWW::Mechanize' => '1.50';
+ requires 'JSON' => 2.09;
+ 
+ build_requires 'Test::More';
+--- a/lib/WWW/Mechanize/AutoPager.pm
++++ b/lib/WWW/Mechanize/AutoPager.pm
+@@ -6,7 +6,7 @@
+ 
+ use HTML::AutoPagerize;
+ use Scalar::Util qw( weaken );
+-use WWW::Mechanize::DecodedContent;
++use WWW::Mechanize;
+ use JSON;
+ 
+ sub WWW::Mechanize::autopager {
+@@ -72,7 +72,7 @@
+ sub next_link {
+     my $self = shift;
+ 
+-    my $res = $self->{autopager}->handle($self->{mech}->uri, $self->{mech}->decoded_content)
++    my $res = $self->{autopager}->handle($self->{mech}->uri, $self->{mech}->content)
+         or return;
+ 
+     return $res->{next_link};
+@@ -81,7 +81,7 @@
+ sub page_element {
+     my $self = shift;
+ 
+-    my $res = $self->{autopager}->handle($self->{mech}->uri, $self->{mech}->decoded_content)
++    my $res = $self->{autopager}->handle($self->{mech}->uri, $self->{mech}->content)
+         or return;
+ 
+     return $res->{page_element};
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d5287eb
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+drop-www-mechanize-decodedcontent.patch

-- 
Debian packaging of libwww-mechanize-autopager-perl



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