Update to p5-WWW-Search-Ebay-3.054.

This commit is contained in:
benoit 2020-02-11 15:36:05 +00:00
parent 0766d56e27
commit be18a75ad6
4 changed files with 16 additions and 15 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.15 2019/07/08 08:41:21 cwen Exp $
# $OpenBSD: Makefile,v 1.16 2020/02/11 15:36:05 benoit Exp $
COMMENT= backend for searching www.ebay.com
DISTNAME= WWW-Search-Ebay-3.052
DISTNAME= WWW-Search-Ebay-3.054
CATEGORIES= www
# Perl

View File

@ -1,2 +1,2 @@
SHA256 (WWW-Search-Ebay-3.052.tar.gz) = osgshTeJPvhLfwLOQoGN+TW4F7cL0EBrgoE6iA6R0Gg=
SIZE (WWW-Search-Ebay-3.052.tar.gz) = 54632
SHA256 (WWW-Search-Ebay-3.054.tar.gz) = AXqbcDCD9SqrFr8zu9F86tHWHK4kC1o1fuiGARcK8Zw=
SIZE (WWW-Search-Ebay-3.054.tar.gz) = 54534

View File

@ -1,22 +1,22 @@
$OpenBSD: patch-lib_WWW_Search_Ebay_pm,v 1.1 2019/07/08 08:41:21 cwen Exp $
$OpenBSD: patch-lib_WWW_Search_Ebay_pm,v 1.2 2020/02/11 15:36:05 benoit Exp $
Fix for:
Use of uninitialized value in numeric lt (<) at
/usr/local/libdata/perl5/site_perl/WWW/Search/Ebay.pm line 672.
Index: lib/WWW/Search/Ebay.pm
--- lib/WWW/Search/Ebay.pm.orig
+++ lib/WWW/Search/Ebay.pm
@@ -669,7 +669,7 @@ sub result_as_HTML
my $dateNow = ParseDate('now');
print STDERR " DDD compare end_date ==$dateEnd==\n" if (DEBUG_DATES || (1 < $self->{_debug}));
print STDERR " DDD compare date_now ==$dateNow==\n" if (DEBUG_DATES || (1 < $self->{_debug}));
- if (Date_Cmp($dateEnd, $dateNow) < 0)
+ if ((Date_Cmp($dateEnd, $dateNow) || 0) < 0)
--- lib/WWW/Search/Ebay.pm.orig Mon Sep 16 04:04:33 2019
+++ lib/WWW/Search/Ebay.pm Tue Feb 11 15:14:04 2020
@@ -647,7 +647,7 @@
my $sEndedColor = 'green';
my $sEndedWord = 'ends';
print STDERR " DDD compare end_date ==$dateEnd== to now\n" if (DEBUG_DATES || (1 < $self->{_debug}));
- if (Date_Cmp($dateEnd, 'now') < 0)
+ if ((Date_Cmp($dateEnd, 'now') || 0) < 0)
{
$sEndedColor = 'red';
$sEndedWord = 'ended';
@@ -1040,7 +1040,7 @@ sub _parse_tree
@@ -1024,7 +1024,7 @@
&&
(0 < $iBids) # Item got any bids
&&

View File

@ -1,4 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/03/04 20:33:32 jasper Exp $
@comment $OpenBSD: PLIST,v 1.2 2020/02/11 15:36:05 benoit Exp $
${P5SITE}/WWW/Search/
${P5SITE}/WWW/Search/Ebay/
${P5SITE}/WWW/Search/Ebay.pm
${P5SITE}/WWW/Search/Ebay/Auctions.pm