[libhtml-formhandler-perl] 01/03: Add 735051-fix-FTBFS.patch

Salvatore Bonaccorso carnil at debian.org
Thu Jan 30 22:11:50 UTC 2014


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

carnil pushed a commit to branch master
in repository libhtml-formhandler-perl.

commit eec8408450d14ecee8d85f0ad2c8a67e6cfcc5c6
Author: Salvatore Bonaccorso <carnil at debian.org>
Date:   Thu Jan 30 22:52:08 2014 +0100

    Add 735051-fix-FTBFS.patch
    
    Fix test case which was dependent on a 2008+5 yts time span.
    
    Closes: #735051
---
 debian/patches/735051-fix-FTBFS.patch | 26 ++++++++++++++++++++++++++
 debian/patches/series                 |  1 +
 2 files changed, 27 insertions(+)

diff --git a/debian/patches/735051-fix-FTBFS.patch b/debian/patches/735051-fix-FTBFS.patch
new file mode 100644
index 0000000..327d9c7
--- /dev/null
+++ b/debian/patches/735051-fix-FTBFS.patch
@@ -0,0 +1,26 @@
+Description: Fix test case which was dependent on a 2008+5 yts time span
+Origin: upstream, https://github.com/gshank/html-formhandler/commit/555f460645d6fd52c5fd8fd386d0dc4bf6f5daa6
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=91793
+Bug-Debian: http://bugs.debian.org/735051
+Forwarded: not-needed
+Reviewed-by: Salvatore Bonaccorso <carnil at debian.org>
+Last-Update: 2014-01-30
+Applied-Upstream: 0.40055
+
+--- a/t/compound/basic.t
++++ b/t/compound/basic.t
+@@ -73,11 +73,12 @@
+ 
+ my $dtform = Form::Start->new;
+ ok( $dtform, 'datetime form' );
++my $year = (localtime)[5] + 1900;
+ $params = { name => 'DT_testing', 'start_date.month' => '10',
+-    'start_date.day' => '2', 'start_date.year' => '2008' };
++    'start_date.day' => '2', 'start_date.year' => $year };
+ $dtform->process( params => $params );
+ ok( $dtform->validated, 'form validated' );
+-is( $dtform->field('start_date')->value->mdy, '10-02-2008', 'datetime value');
++is( $dtform->field('start_date')->value->mdy, "10-02-$year", 'datetime value');
+ $params->{'start_date.month'} = 8;
+ $dtform->process( params => $params );
+ ok( !$dtform->validated, 'form did not validate' );
diff --git a/debian/patches/series b/debian/patches/series
index 5766d01..31f8377 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 pod-encoding.patch
+735051-fix-FTBFS.patch

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



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