r13601 - in /trunk/libtime-piece-mysql-perl: debian/ debian/changelog debian/compat debian/control debian/copyright debian/rules lib/Time/Piece/MySQL.pm t/timestamp.t

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Sat Jan 26 08:15:36 UTC 2008


Author: dmn
Date: Sat Jan 26 08:15:36 2008
New Revision: 13601

URL: http://svn.debian.org/wsvn/?sc=1&rev=13601
Log:
[svn-inject] Applying Debian modifications to trunk

Added:
    trunk/libtime-piece-mysql-perl/debian/
    trunk/libtime-piece-mysql-perl/debian/changelog
    trunk/libtime-piece-mysql-perl/debian/compat
    trunk/libtime-piece-mysql-perl/debian/control
    trunk/libtime-piece-mysql-perl/debian/copyright
    trunk/libtime-piece-mysql-perl/debian/rules   (with props)
Modified:
    trunk/libtime-piece-mysql-perl/lib/Time/Piece/MySQL.pm
    trunk/libtime-piece-mysql-perl/t/timestamp.t

Added: trunk/libtime-piece-mysql-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libtime-piece-mysql-perl/debian/changelog?rev=13601&op=file
==============================================================================
--- trunk/libtime-piece-mysql-perl/debian/changelog (added)
+++ trunk/libtime-piece-mysql-perl/debian/changelog Sat Jan 26 08:15:36 2008
@@ -1,0 +1,11 @@
+libtime-piece-mysql-perl (0.05-2) unstable; urgency=low
+
+  * Handle MySQL 4.1+ timestamp format correctly - closes: #379607
+
+ -- Ben Hutchings <ben at decadent.org.uk>  Fri,  6 Oct 2006 23:38:27 +0100
+
+libtime-piece-mysql-perl (0.05-1) unstable; urgency=low
+
+  * Initial release - closes: #347309
+
+ -- Ben Hutchings <ben at decadentplace.org.uk>  Sun, 01 Jan 2006 19:37:14 +0000

Added: trunk/libtime-piece-mysql-perl/debian/compat
URL: http://svn.debian.org/wsvn/trunk/libtime-piece-mysql-perl/debian/compat?rev=13601&op=file
==============================================================================
--- trunk/libtime-piece-mysql-perl/debian/compat (added)
+++ trunk/libtime-piece-mysql-perl/debian/compat Sat Jan 26 08:15:36 2008
@@ -1,0 +1,1 @@
+4

Added: trunk/libtime-piece-mysql-perl/debian/control
URL: http://svn.debian.org/wsvn/trunk/libtime-piece-mysql-perl/debian/control?rev=13601&op=file
==============================================================================
--- trunk/libtime-piece-mysql-perl/debian/control (added)
+++ trunk/libtime-piece-mysql-perl/debian/control Sat Jan 26 08:15:36 2008
@@ -1,0 +1,15 @@
+Source: libtime-piece-mysql-perl
+Maintainer: Ben Hutchings <ben at decadentplace.org.uk>
+Section: perl
+Priority: extra
+Build-Depends-Indep: debhelper (>= 4), perl (>= 5.6.0-16), libtime-piece-perl (>= 1.03)
+Standards-Version: 3.6.2
+
+Package: libtime-piece-mysql-perl
+Architecture: all
+Depends: ${perl:Depends}, libtime-piece-perl (>= 1.03)
+Description: Time::Piece::MySQL - Adds MySQL-specific methods to Time::Piece
+ Using this module instead of, or in addition to, Time::Piece adds a
+ few MySQL-specific date-time methods to Time::Piece objects.
+ .
+ Homepage: http://search.cpan.org/~kasei/Time-Piece-MySQL/

Added: trunk/libtime-piece-mysql-perl/debian/copyright
URL: http://svn.debian.org/wsvn/trunk/libtime-piece-mysql-perl/debian/copyright?rev=13601&op=file
==============================================================================
--- trunk/libtime-piece-mysql-perl/debian/copyright (added)
+++ trunk/libtime-piece-mysql-perl/debian/copyright Sat Jan 26 08:15:36 2008
@@ -1,0 +1,20 @@
+This is the Debian-packaged version of Time::Piece::MySQL put together
+by Ben Hutchings <ben at decadentplace.org.uk> using source from:
+
+  http://search.cpan.org/~kasei/Time-Piece-MySQL/
+
+Copyright 2004 Marty Pauley
+Copyright 2002 David Rolsky
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of either:
+
+a) the GNU General Public License as published by the Free Software
+   Foundation; either version 1, or (at your option) any later
+   version, or
+
+b) the "Artistic License" which comes with Perl.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL' and
+the Artistic Licence in `/usr/share/common-licenses/Artistic'.

Added: trunk/libtime-piece-mysql-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libtime-piece-mysql-perl/debian/rules?rev=13601&op=file
==============================================================================
--- trunk/libtime-piece-mysql-perl/debian/rules (added)
+++ trunk/libtime-piece-mysql-perl/debian/rules Sat Jan 26 08:15:36 2008
@@ -1,0 +1,29 @@
+#!/usr/bin/make -f
+
+build : build-stamp
+
+build-stamp : Makefile.PL
+	perl Makefile.PL INSTALLDIRS=vendor
+	$(MAKE) test
+	touch build-stamp
+
+binary : binary-arch binary-indep
+
+binary-arch :
+
+binary-indep : build-stamp
+	dh_testroot
+	$(MAKE) PREFIX=$(CURDIR)/debian/libtime-piece-mysql-perl/usr install
+	dh_perl
+	dh_installchangelogs Changes
+	dh_installdocs README
+	dh_compress
+	dh_fixperms
+	dh_gencontrol
+	dh_builddeb
+
+clean : 
+	if [ -f Makefile ]; then $(MAKE) clean; fi
+	dh_clean Makefile Makefile.old build-stamp
+
+.PHONY : build binary binary-arch binary-dep clean

Propchange: trunk/libtime-piece-mysql-perl/debian/rules
------------------------------------------------------------------------------
    svn:executable = *

Modified: trunk/libtime-piece-mysql-perl/lib/Time/Piece/MySQL.pm
URL: http://svn.debian.org/wsvn/trunk/libtime-piece-mysql-perl/lib/Time/Piece/MySQL.pm?rev=13601&op=diff
==============================================================================
--- trunk/libtime-piece-mysql-perl/lib/Time/Piece/MySQL.pm (original)
+++ trunk/libtime-piece-mysql-perl/lib/Time/Piece/MySQL.pm Sat Jan 26 08:15:36 2008
@@ -66,8 +66,9 @@
 }
 
 sub from_mysql_timestamp {
-    # From MySQL version 4.1, timestamps are returned as datetime strings
     my ($class, $timestamp) = @_;
+    # from MySQL 4.1 onward, timestamps are punctuated like datetimes
+    $timestamp =~ s/[-: ]//g;
     my $length = length $timestamp;
     # most timestamps have 2-digit years, except 8 and 14 char ones
     if ( $length != 14 && $length != 8 ) {

Modified: trunk/libtime-piece-mysql-perl/t/timestamp.t
URL: http://svn.debian.org/wsvn/trunk/libtime-piece-mysql-perl/t/timestamp.t?rev=13601&op=diff
==============================================================================
--- trunk/libtime-piece-mysql-perl/t/timestamp.t (original)
+++ trunk/libtime-piece-mysql-perl/t/timestamp.t Sat Jan 26 08:15:36 2008
@@ -11,6 +11,7 @@
     '1202110545' => '20120211054500',
     '120211054537' => '20120211054537',
     '20120211054537' => '20120211054537',
+    '2012-02-11 05:45:37' => '20120211054537',
 );
 
 #my @null = qw/ 19691231235959 20380101000000 /;




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