r7356 - in /trunk/libdata-random-perl/debian: changelog patches/40rand_datetime.patch patches/series

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Tue Sep 11 08:20:43 UTC 2007


Author: dmn
Date: Tue Sep 11 08:20:43 2007
New Revision: 7356

URL: http://svn.debian.org/wsvn/?sc=1&rev=7356
Log:
* Add 40rand_datetime.patch to fix t/rand_datetime.t, which fails when
  returned random datetime has zero time. Closes: #441746 -- random FTBFS

Added:
    trunk/libdata-random-perl/debian/patches/40rand_datetime.patch
Modified:
    trunk/libdata-random-perl/debian/changelog
    trunk/libdata-random-perl/debian/patches/series

Modified: trunk/libdata-random-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libdata-random-perl/debian/changelog?rev=7356&op=diff
==============================================================================
--- trunk/libdata-random-perl/debian/changelog (original)
+++ trunk/libdata-random-perl/debian/changelog Tue Sep 11 08:20:43 2007
@@ -1,8 +1,10 @@
 libdata-random-perl (0.05-3) UNRELEASED; urgency=low
 
   * Convert from dpatch to quilt
+  * Add 40rand_datetime.patch to fix t/rand_datetime.t, which fails when
+    returned random datetime has zero time. Closes: #441746 -- random FTBFS
 
- -- Damyan Ivanov <dmn at debian.org>  Tue, 11 Sep 2007 11:13:07 +0300
+ -- Damyan Ivanov <dmn at debian.org>  Tue, 11 Sep 2007 11:15:32 +0300
 
 libdata-random-perl (0.05-2) unstable; urgency=medium
 

Added: trunk/libdata-random-perl/debian/patches/40rand_datetime.patch
URL: http://svn.debian.org/wsvn/trunk/libdata-random-perl/debian/patches/40rand_datetime.patch?rev=7356&op=file
==============================================================================
--- trunk/libdata-random-perl/debian/patches/40rand_datetime.patch (added)
+++ trunk/libdata-random-perl/debian/patches/40rand_datetime.patch Tue Sep 11 08:20:43 2007
@@ -1,0 +1,49 @@
+Index: libdata-random-perl/t/rand_datetime.t
+===================================================================
+--- libdata-random-perl.orig/t/rand_datetime.t	2007-09-11 11:11:37.000000000 +0300
++++ libdata-random-perl/t/rand_datetime.t	2007-09-11 11:12:32.000000000 +0300
+@@ -35,7 +35,7 @@
+ 
+             $pass = 0
+               unless $delta >= 0 && $delta <= $max_days
+-              && _to_secs( ( split ( / /, $date ) )[1] );
++              && defined( _to_secs( ( split ( / /, $date ) )[1] ) );
+ 
+             $i++;
+         }
+@@ -59,7 +59,7 @@
+ 
+             $pass = 0
+               unless $delta >= 0 && $delta <= $max_days
+-              && _to_secs( ( split ( / /, $date ) )[1] );
++              && defined( _to_secs( ( split ( / /, $date ) )[1] ) );
+ 
+             $i++;
+         }
+@@ -89,7 +89,7 @@
+ 
+             $pass = 0
+               unless $delta >= 0 && $delta <= $max_days
+-              && _to_secs( ( split ( / /, $date ) )[1] );
++              && defined( _to_secs( ( split ( / /, $date ) )[1] ) );
+ 
+             $i++;
+         }
+@@ -121,7 +121,7 @@
+ 
+             $pass = 0
+               unless $delta >= 0 && $delta <= $max_days
+-              && _to_secs( ( split ( / /, $date ) )[1] );
++              && defined( _to_secs( ( split ( / /, $date ) )[1] ) );
+ 
+             $i++;
+         }
+@@ -139,7 +139,7 @@
+ 
+         $pass = 0
+           unless $new_year == $year && $new_month == $month && $new_day == $day
+-          && _to_secs( ( split ( / /, $date ) )[1] );
++          && defined( _to_secs( ( split ( / /, $date ) )[1] ) );
+ 
+         ok($pass);
+     }

Modified: trunk/libdata-random-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/trunk/libdata-random-perl/debian/patches/series?rev=7356&op=diff
==============================================================================
--- trunk/libdata-random-perl/debian/patches/series (original)
+++ trunk/libdata-random-perl/debian/patches/series Tue Sep 11 08:20:43 2007
@@ -1,3 +1,4 @@
 10dict_location.patch
 20man_hyphen.patch
 30rand_time.patch
+40rand_datetime.patch




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