Fix patch for fuzz.
This commit is contained in:
parent
ad9a5d9b1c
commit
dbf898a957
@ -1,12 +1,13 @@
|
||||
--- DBD-Pg-1.31/t/lib/App/Info/RDBMS/PostgreSQL.pm.fixver 2003-12-19 09:48:23.000000000 -0500
|
||||
+++ DBD-Pg-1.31/t/lib/App/Info/RDBMS/PostgreSQL.pm 2003-12-19 09:48:47.000000000 -0500
|
||||
@@ -254,6 +254,9 @@
|
||||
} elsif ($version =~ /(\d+)\.(\d+)\w+\d+/) {
|
||||
diff -up DBD-Pg-2.8.7/t/lib/App/Info/RDBMS/PostgreSQL.pm.fix DBD-Pg-2.8.7/t/lib/App/Info/RDBMS/PostgreSQL.pm
|
||||
--- DBD-Pg-2.8.7/t/lib/App/Info/RDBMS/PostgreSQL.pm.fix 2008-07-21 17:15:05.000000000 +0200
|
||||
+++ DBD-Pg-2.8.7/t/lib/App/Info/RDBMS/PostgreSQL.pm 2008-07-28 09:01:08.000000000 +0200
|
||||
@@ -274,6 +274,9 @@ my $get_version = sub {
|
||||
# New versions, such as "7.4", are treated as patch level "0"
|
||||
@{$self}{qw(version major minor patch)} =
|
||||
($version, $1, $2, 0);
|
||||
+ } elsif ($version =~ /(\d+)\.(\d+)/) {
|
||||
+ @{$self}{qw(version major minor patch)} =
|
||||
+ ($version, $1, $2, 0);
|
||||
+ ($version, $1, $2, 0);
|
||||
} else {
|
||||
$self->error("Failed to parse PostgreSQL version parts from " .
|
||||
"string '$version'");
|
||||
|
||||
@ -22,7 +22,7 @@ An implementation of DBI for PostgreSQL for Perl.
|
||||
|
||||
%prep
|
||||
%setup -q -n DBD-Pg-%{version}
|
||||
%patch0 -p1
|
||||
#%patch0 -p1
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user