r3360 - in /packages/libxml-feed-perl/trunk/debian: changelog control patches/ patches/00list patches/01_atom_date.dpatch rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Sun Jul 30 22:06:30 UTC 2006


Author: gregoa-guest
Date: Sun Jul 30 22:06:29 2006
New Revision: 3360

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=3360
Log:
* Fix problem with date parsing of atom feeds by applying a patch
  provided by Joey Hess - thanks! (Closes: #380498)

Added:
    packages/libxml-feed-perl/trunk/debian/patches/
    packages/libxml-feed-perl/trunk/debian/patches/00list
    packages/libxml-feed-perl/trunk/debian/patches/01_atom_date.dpatch   (with props)
Modified:
    packages/libxml-feed-perl/trunk/debian/changelog
    packages/libxml-feed-perl/trunk/debian/control
    packages/libxml-feed-perl/trunk/debian/rules

Modified: packages/libxml-feed-perl/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libxml-feed-perl/trunk/debian/changelog?rev=3360&op=diff
==============================================================================
--- packages/libxml-feed-perl/trunk/debian/changelog (original)
+++ packages/libxml-feed-perl/trunk/debian/changelog Sun Jul 30 22:06:29 2006
@@ -1,3 +1,10 @@
+libxml-feed-perl (0.10-2) unstable; urgency=low
+
+  * Fix problem with date parsing of atom feeds by applying a patch
+    provided by Joey Hess - thanks! (Closes: #380498)
+
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Sun, 30 Jul 2006 23:58:58 +0200
+
 libxml-feed-perl (0.10-1) unstable; urgency=low
 
   * New upstream release.

Modified: packages/libxml-feed-perl/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libxml-feed-perl/trunk/debian/control?rev=3360&op=diff
==============================================================================
--- packages/libxml-feed-perl/trunk/debian/control (original)
+++ packages/libxml-feed-perl/trunk/debian/control Sun Jul 30 22:06:29 2006
@@ -1,7 +1,7 @@
 Source: libxml-feed-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 5.0.0)
+Build-Depends: debhelper (>= 5.0.0), dpatch
 Build-Depends-Indep: perl (>= 5.8.0-7), libmodule-build-perl, libclass-errorhandler-perl, libxml-rss-perl (>= 1.01), libxml-atom-perl (>= 0.08), libwww-perl, libhtml-parser-perl, liburi-perl, libdatetime-perl, libdatetime-format-mail-perl, libdatetime-format-w3cdtf-perl, liburi-fetch-perl (>= 0.03-2), libfeed-find-perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Jaldhar H. Vyas <jaldhar at debian.org>, gregor herrmann <gregor+debian at comodo.priv.at>

Added: packages/libxml-feed-perl/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libxml-feed-perl/trunk/debian/patches/00list?rev=3360&op=file
==============================================================================
--- packages/libxml-feed-perl/trunk/debian/patches/00list (added)
+++ packages/libxml-feed-perl/trunk/debian/patches/00list Sun Jul 30 22:06:29 2006
@@ -1,0 +1,1 @@
+01_atom_date

Added: packages/libxml-feed-perl/trunk/debian/patches/01_atom_date.dpatch
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libxml-feed-perl/trunk/debian/patches/01_atom_date.dpatch?rev=3360&op=file
==============================================================================
--- packages/libxml-feed-perl/trunk/debian/patches/01_atom_date.dpatch (added)
+++ packages/libxml-feed-perl/trunk/debian/patches/01_atom_date.dpatch Sun Jul 30 22:06:29 2006
@@ -1,0 +1,43 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_atom_date.dpatch by  <gregor+debian at comodo.priv.at>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: fix problems with dates in XML::Feed:Atom
+## Cf. #380498
+
+ at DPATCH@
+diff -urNad libxml-feed-perl~/lib/XML/Feed/Atom.pm libxml-feed-perl/lib/XML/Feed/Atom.pm
+--- libxml-feed-perl~/lib/XML/Feed/Atom.pm	2006-06-17 02:21:07.000000000 +0200
++++ libxml-feed-perl/lib/XML/Feed/Atom.pm	2006-07-30 23:58:14.000000000 +0200
+@@ -59,7 +59,8 @@
+     if (@_) {
+         $feed->{atom}->modified(DateTime::Format::W3CDTF->format_datetime($_[0]));
+     } else {
+-        iso2dt($feed->{atom}->modified);
++        return iso2dt($feed->{atom}->modified) if $feed->{atom}->modified;
++        return iso2dt($feed->{atom}->updated);
+     }
+ }
+ 
+@@ -162,7 +163,9 @@
+     if (@_) {
+         $entry->{entry}->issued(DateTime::Format::W3CDTF->format_datetime($_[0])) if $_[0];
+     } else {
+-        $entry->{entry}->issued ? iso2dt($entry->{entry}->issued) : undef;
++        return iso2dt($entry->{entry}->issued) if $entry->{entry}->issued;
++        return iso2dt($entry->{entry}->published) if $entry->{entry}->published;
++        return undef;
+     }
+ }
+ 
+@@ -171,7 +174,9 @@
+     if (@_) {
+         $entry->{entry}->modified(DateTime::Format::W3CDTF->format_datetime($_[0])) if $_[0];
+     } else {
+-        $entry->{entry}->modified ? iso2dt($entry->{entry}->modified) : undef;
++        return iso2dt($entry->{entry}->modified) if $entry->{entry}->modified;
++        return iso2dt($entry->{entry}->updated) if $entry->{entry}->updated;
++        return undef;
+     }
+ }
+ 

Propchange: packages/libxml-feed-perl/trunk/debian/patches/01_atom_date.dpatch
------------------------------------------------------------------------------
    svn:executable = *

Modified: packages/libxml-feed-perl/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libxml-feed-perl/trunk/debian/rules?rev=3360&op=diff
==============================================================================
--- packages/libxml-feed-perl/trunk/debian/rules (original)
+++ packages/libxml-feed-perl/trunk/debian/rules Sun Jul 30 22:06:29 2006
@@ -6,6 +6,8 @@
 #
 # It was later modified by Jason Kohles <email at jasonkohles.com>
 # http://www.jasonkohles.com/ to support Module::Build installed modules
+
+include /usr/share/dpatch/dpatch.make
 
 export PERL_MM_USE_DEFAULT=1
 PACKAGE=$(shell dh_listpackages)
@@ -16,14 +18,14 @@
 
 TMP     =$(CURDIR)/debian/$(PACKAGE)
 
-build: build-stamp
+build: build-stamp patch
 build-stamp:
 	dh_testdir
 	$(PERL) Build.PL installdirs=vendor
 	OPTIMIZE="-Wall -O2 -g" $(PERL) Build
 	touch build-stamp
 
-clean:
+clean: unpatch
 	dh_testdir
 	dh_testroot
 	-$(PERL) Build distclean




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