r2015 - in packages/libspreadsheet-parseexcel-perl/trunk/debian: .
patches
Niko Tyni
ntyni-guest at costa.debian.org
Thu Jan 19 21:08:27 UTC 2006
Author: ntyni-guest
Date: 2006-01-19 21:08:26 +0000 (Thu, 19 Jan 2006)
New Revision: 2015
Added:
packages/libspreadsheet-parseexcel-perl/trunk/debian/README.Debian
packages/libspreadsheet-parseexcel-perl/trunk/debian/patches/40numeric.dpatch
Modified:
packages/libspreadsheet-parseexcel-perl/trunk/debian/changelog
packages/libspreadsheet-parseexcel-perl/trunk/debian/patches/00list
Log:
Remove numeric overload in Spreadsheet::ParseExcel::Worksheet.
Added: packages/libspreadsheet-parseexcel-perl/trunk/debian/README.Debian
===================================================================
--- packages/libspreadsheet-parseexcel-perl/trunk/debian/README.Debian 2006-01-19 20:29:54 UTC (rev 2014)
+++ packages/libspreadsheet-parseexcel-perl/trunk/debian/README.Debian 2006-01-19 21:08:26 UTC (rev 2015)
@@ -0,0 +1,24 @@
+Spreadsheet::ParseExcel for Debian
+
+This version of Spreadsheet::ParseExcel has a minor API
+incompatibility with the CPAN version. Originally an object of the
+'Spreadsheet::ParseExcel::Worksheet' class would evaluate to the sheet
+index when used in a numeric context.
+
+This feature was undocumented and unintuitive, since it broke
+eg. the common Perl idiom
+
+ my $sheet = $book->Worksheet(0) or die ...;
+
+and made the statements
+
+ if($book->Worksheet($name))
+ if(defined $book->Worksheet($name))
+
+not equivalent.
+
+For these reasons, the numeric overload has been dropped in the
+Debian version of this module. The issue is described in the
+CPAN bug tracker, bug 14278.
+
+Thu, 19 Jan 2006 23:07:47 +0200 Niko Tyni <ntyni at iki.fi>
Modified: packages/libspreadsheet-parseexcel-perl/trunk/debian/changelog
===================================================================
--- packages/libspreadsheet-parseexcel-perl/trunk/debian/changelog 2006-01-19 20:29:54 UTC (rev 2014)
+++ packages/libspreadsheet-parseexcel-perl/trunk/debian/changelog 2006-01-19 21:08:26 UTC (rev 2015)
@@ -5,11 +5,14 @@
as per policy.
* Add myself to Uploaders.
* Don't build the package in the 'binary-arch' target.
- * debian/patches/30rstring.dpatch:
- + handle UTF16-encoded strings in the 'RSTRING' opcode, just
- like in 'STRING'. (Closes: #299870)
+ * debian/patches:
+ + 30rstring.dpatch: handle UTF16-encoded strings in the 'RSTRING'
+ opcode, just like in 'STRING'. (Closes: #299870)
+ + 40numeric.dpatch: API change: remove the numeric overload in
+ Spreadsheet::ParseExcel::Worksheet. See README.Debian.
+ (Closes: #213231)
- -- Niko Tyni <ntyni at iki.fi> Thu, 19 Jan 2006 22:27:04 +0200
+ -- Niko Tyni <ntyni at iki.fi> Thu, 19 Jan 2006 22:43:32 +0200
libspreadsheet-parseexcel-perl (0.2603-4) unstable; urgency=low
Modified: packages/libspreadsheet-parseexcel-perl/trunk/debian/patches/00list
===================================================================
--- packages/libspreadsheet-parseexcel-perl/trunk/debian/patches/00list 2006-01-19 20:29:54 UTC (rev 2014)
+++ packages/libspreadsheet-parseexcel-perl/trunk/debian/patches/00list 2006-01-19 21:08:26 UTC (rev 2015)
@@ -1,3 +1,4 @@
10objref.dpatch
20general.dpatch
30rstring.dpatch
+40numeric.dpatch
Added: packages/libspreadsheet-parseexcel-perl/trunk/debian/patches/40numeric.dpatch
===================================================================
--- packages/libspreadsheet-parseexcel-perl/trunk/debian/patches/40numeric.dpatch 2006-01-19 20:29:54 UTC (rev 2014)
+++ packages/libspreadsheet-parseexcel-perl/trunk/debian/patches/40numeric.dpatch 2006-01-19 21:08:26 UTC (rev 2015)
@@ -0,0 +1,51 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 40numeric.dpatch by Niko Tyni <ntyni at iki.fi>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Remove the unintuitive numeric overload in
+## DP: Spreadsheet::ParseExcel::Worksheet. Note that this is an API
+## DP: change. (#231231)
+
+ at DPATCH@
+diff -urNad trunk~/ParseExcel.pm trunk/ParseExcel.pm
+--- trunk~/ParseExcel.pm 2006-01-19 22:55:39.221432044 +0200
++++ trunk/ParseExcel.pm 2006-01-19 23:02:48.337801950 +0200
+@@ -57,10 +57,6 @@
+ require Exporter;
+ use strict;
+ sub sheetNo($);
+-use overload
+- '0+' => \&sheetNo,
+- 'fallback' => 1,
+-;
+ use vars qw($VERSION @ISA);
+ @ISA = qw(Exporter);
+ sub new($%) {
+@@ -2177,6 +2173,14 @@
+
+ I<Spreadsheet::ParseExcel::Worksheet>
+
++Debian-specific note: in the original CPAN version
++this class has a numeric overload so that evaluating a
++I<Spreadsheet::ParseExcel::Worksheet> object in numeric
++context results in its index value (I<SheetNo>). This overload
++has been removed in the Debian version of this module. See
++/usr/share/doc/libspreadsheet-parseexcel-perl/README.Debian for more
++information.
++
+ Worksheet class has these methods:
+
+ =over 4
+@@ -2617,6 +2621,12 @@
+ (maybe [Tool]-[Option]-[Calculation] or something)
+ You will see the same result.
+
++=head1 NOTE
++
++The Debian version of this module has a minor API incompatibility with
++the CPAN version. See the I<Spreadsheet::ParseExcel::Worksheet> class
++documentation above.
++
+ =head1 AUTHOR
+
+ Kawai Takanori (Hippo2000) kwitknr at cpan.org
Property changes on: packages/libspreadsheet-parseexcel-perl/trunk/debian/patches/40numeric.dpatch
___________________________________________________________________
Name: svn:executable
+ *
More information about the Pkg-perl-cvs-commits
mailing list