rpms/perl-Test-Perl-Critic/devel perl-Test-Perl-Critic-1.01-fixtest.patch, NONE, 1.1 perl-Test-Perl-Critic.spec, 1.4, 1.5

Tom Callaway (spot) fedora-extras-commits at redhat.com
Tue Jan 15 16:26:21 UTC 2008


Author: spot

Update of /cvs/pkgs/rpms/perl-Test-Perl-Critic/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31444

Modified Files:
	perl-Test-Perl-Critic.spec 
Added Files:
	perl-Test-Perl-Critic-1.01-fixtest.patch 
Log Message:

fix test failures


perl-Test-Perl-Critic-1.01-fixtest.patch:

--- NEW FILE perl-Test-Perl-Critic-1.01-fixtest.patch ---
diff -up Test-Perl-Critic-1.01/lib/Test/Perl/Critic.pm.BAD Test-Perl-Critic-1.01/lib/Test/Perl/Critic.pm
--- Test-Perl-Critic-1.01/lib/Test/Perl/Critic.pm.BAD	2008-01-15 11:21:37.000000000 -0500
+++ Test-Perl-Critic-1.01/lib/Test/Perl/Critic.pm	2008-01-15 11:22:10.000000000 -0500
@@ -92,7 +92,7 @@ sub critic_ok {
 
 sub all_critic_ok {
 
-    my @dirs = @_ ? @_ : _starting_points();
+    my (@dirs) = @_ ? @_ : _starting_points();
     my @files = all_code_files( @dirs );
     $TEST->plan( tests => scalar @files );
 
@@ -103,7 +103,7 @@ sub all_critic_ok {
 #---------------------------------------------------------------------------
 
 sub all_code_files {
-    my @dirs = @_ ? @_ : _starting_points();
+    my (@dirs) = @_ ? @_ : _starting_points();
     return Perl::Critic::Utils::all_perl_files(@dirs);
 }
 


Index: perl-Test-Perl-Critic.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Test-Perl-Critic/devel/perl-Test-Perl-Critic.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- perl-Test-Perl-Critic.spec	14 Jan 2008 23:42:10 -0000	1.4
+++ perl-Test-Perl-Critic.spec	15 Jan 2008 16:25:41 -0000	1.5
@@ -1,12 +1,13 @@
 Name:           perl-Test-Perl-Critic
 Version:        1.01
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Use Perl::Critic in test programs
 
 Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/Test-Perl-Critic/
 Source0:        http://www.cpan.org/authors/id/T/TH/THALJEF/testperlcritic/Test-Perl-Critic-%{version}.tar.gz
+Patch0:         perl-Test-Perl-Critic-1.01-fixtest.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
@@ -26,6 +27,7 @@
 
 %prep
 %setup -q -n Test-Perl-Critic-%{version}
+%patch0 -p1
 
 
 %build
@@ -55,6 +57,9 @@
 
 
 %changelog
+* Tue Jan 15 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 1.01-3
+- patch for test failure
+
 * Mon Jan 14 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 1.01-2
 - rebuild for new perl
 




More information about the fedora-extras-commits mailing list