Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144689 - dev-perl/Template-XML patch
Summary: dev-perl/Template-XML patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-21 13:17 UTC by John Weigel
Modified: 2006-08-21 15:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Weigel 2006-08-21 13:17:31 UTC
There are a couple problems with the Template-XML ebuild. There is a typo in the XPath.pm module and a coding error in LibXML.pm. Here is a patch to correct the problems.

--- Template-XML-2.16/lib/Template/Plugin/XML/LibXML.pm 2006-05-15 09:19:23.000000000 -0500
+++ Template-XML-2.16-new/lib/Template/Plugin/XML/LibXML.pm     2006-08-21 13:00:16.000000000 -0500
@@ -112,7 +112,7 @@
         eval { $parser->$method($args->{$method}) };

         # if there's a problem throw a Tempalte::Exception
-        $self->throw("option '$method' not supported") if $@;
+        $class->throw("option '$method' not supported") if $@;
     }

     # parse
diff -Nru Template-XML-2.16/lib/Template/Plugin/XML/XPath.pm Template-XML-2.16-new/lib/Template/Plugin/XML/XPath.pm
--- Template-XML-2.16/lib/Template/Plugin/XML/XPath.pm  2006-01-31 11:52:53.000000000 -0600
+++ Template-XML-2.16-new/lib/Template/Plugin/XML/XPath.pm      2006-08-21 12:49:39.000000000 -0500
@@ -19,7 +19,7 @@
 package Template::Plugin::XML::XPath;

 use strict;
-usw warnings;
+use warnings;
 use Template::Exception;
 use base 'Template::Plugin';
 use XML::XPath;
Comment 1 Christian Hartmann (RETIRED) gentoo-dev 2006-08-21 15:36:42 UTC
In cvs.