rpms/perl-HTML-Tree/devel missing_close_tag.patch, NONE, 1.1 perl-HTML-Tree.spec, 1.16, 1.17

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Author: spot

Update of /cvs/pkgs/rpms/perl-HTML-Tree/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14112/devel

Modified Files:
	perl-HTML-Tree.spec 
Added Files:
	missing_close_tag.patch 
Log Message:
fix missing close tag issue (bz 525587)

missing_close_tag.patch:
 Element.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE missing_close_tag.patch ---
diff -ur HTML-Tree-3.23/lib/HTML/Element.pm HTML-Tree-3.23-fix/lib/HTML/Element.pm
--- HTML-Tree-3.23/lib/HTML/Element.pm	2006-11-13 03:13:33.000000000 +1000
+++ HTML-Tree-3.23-fix/lib/HTML/Element.pm	2009-09-23 14:22:12.000000000 +1000
@@ -2041,7 +2041,7 @@
          and ref($this) # sanity
          and not(
                  $this->{'_empty_element'}
-                 || $empty_element_map->{$this->{'_tag'} || ''}
+                 || ($empty_element_map->{$this->{'_tag'} || ''} && !@{$this->{'_content'}})
                 ) # things that don't get post-order callbacks
       ) {
         shift @I;


Index: perl-HTML-Tree.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-HTML-Tree/devel/perl-HTML-Tree.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -p -r1.16 -r1.17
--- perl-HTML-Tree.spec	26 Jul 2009 06:32:18 -0000	1.16
+++ perl-HTML-Tree.spec	28 Sep 2009 14:33:10 -0000	1.17
@@ -1,11 +1,14 @@
 Name:           perl-HTML-Tree
 Version:        3.23
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        HTML tree handling modules for Perl
 Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/HTML-Tree/
 Source0:        http://search.cpan.org/CPAN/authors/id/P/PE/PETEK/HTML-Tree-%{version}.tar.gz
+# Upstream bug filed:
+# https://rt.cpan.org/Ticket/Display.html?id=49932
+Patch0:         missing_close_tag.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  perl(HTML::Parser) >= 2.19
@@ -25,6 +28,7 @@ a separate development track.
 
 %prep
 %setup -q -n HTML-Tree-%{version}
+%patch0 -p1 -b .missing-close-tag
 %{__perl} -pi -e 's|/usr/local/bin/perl|%{__perl}|' htmltree
 
 cat << \EOF > %{name}-prov
@@ -59,6 +63,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/HTML::*3*
 
 %changelog
+* Mon Sep 28 2009 Tom "spot" Callaway <tcallawa@xxxxxxxxxx> - 1:3.23-9
+- apply Jeff Fearn's fix for the missing close tag bug (bz 535587)
+
 * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1:3.23-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 

--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
Fedora-perl-devel-list mailing list
Fedora-perl-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-perl-devel-list

[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux