pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/bidwatcher Update "bidwatcher" to version 1.3.16....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ad670d9a8c9b
branches:  trunk
changeset: 480825:ad670d9a8c9b
user:      tron <tron%pkgsrc.org@localhost>
date:      Tue Sep 21 07:43:10 2004 +0000

description:
Update "bidwatcher" to version 1.3.16. Changes since version 1.3.15:
- Parse eBay pages properly again
- A parsing error leading to a segmentation fault is fixed (patch
  from Klaus Singvogel)
- Get the snipe key 60 seconds before sniping because this key becomes
  stale.
- Snipes do not try to get a snipe key at startup or setup.
- Set the proxy during startup.  Otherwise a "Network error" is issued
  at startup behind a proxy.
- Workaround a bug with german umlauts and other ascii > 127 in the
  details windows. They are simply removed.
- Recognize shifting end times of auctions.
- User listings:
  - The auction-id was read as "unsigned long" (4 Byte) instead of
    "unsigned long long" (8 Byte). Due to that truncation some
     auction-ids were not handled correctly.
  - Ebay places linebreaks at the worst places in its pages: the
    parser did not remove them all. So the auction id was not
    found.
- Obtain snipe-key just when necessary, not earlier.
- New feature: Snipe groups

diffstat:

 misc/bidwatcher/Makefile         |   5 +--
 misc/bidwatcher/distinfo         |   8 +++---
 misc/bidwatcher/patches/patch-ac |  46 +++++++++++++--------------------------
 3 files changed, 21 insertions(+), 38 deletions(-)

diffs (80 lines):

diff -r bd6ae862dfe9 -r ad670d9a8c9b misc/bidwatcher/Makefile
--- a/misc/bidwatcher/Makefile  Tue Sep 21 07:11:30 2004 +0000
+++ b/misc/bidwatcher/Makefile  Tue Sep 21 07:43:10 2004 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.38 2004/07/20 13:59:12 tron Exp $
+# $NetBSD: Makefile,v 1.39 2004/09/21 07:43:10 tron Exp $
 
-DISTNAME=      bidwatcher-1.3.15
-PKGREVISION=   1
+DISTNAME=      bidwatcher-1.3.16
 CATEGORIES=    misc
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=bidwatcher/}
 
diff -r bd6ae862dfe9 -r ad670d9a8c9b misc/bidwatcher/distinfo
--- a/misc/bidwatcher/distinfo  Tue Sep 21 07:11:30 2004 +0000
+++ b/misc/bidwatcher/distinfo  Tue Sep 21 07:43:10 2004 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.31 2004/07/20 13:59:12 tron Exp $
+$NetBSD: distinfo,v 1.32 2004/09/21 07:43:10 tron Exp $
 
-SHA1 (bidwatcher-1.3.15.tar.gz) = 96ab2167b7ab1710969c4b6f7b28766de76a9f82
-Size (bidwatcher-1.3.15.tar.gz) = 178532 bytes
-SHA1 (patch-ac) = eafc0e9b2626c6b8680a594353f83523959b5573
+SHA1 (bidwatcher-1.3.16.tar.gz) = 7ca785f05d9856e60be2f7bbaaf72ad37135eca4
+Size (bidwatcher-1.3.16.tar.gz) = 186960 bytes
+SHA1 (patch-ac) = 785fdb2dc9ed8ce752a11b02f32b913451cf5533
diff -r bd6ae862dfe9 -r ad670d9a8c9b misc/bidwatcher/patches/patch-ac
--- a/misc/bidwatcher/patches/patch-ac  Tue Sep 21 07:11:30 2004 +0000
+++ b/misc/bidwatcher/patches/patch-ac  Tue Sep 21 07:43:10 2004 +0000
@@ -1,35 +1,19 @@
-$NetBSD: patch-ac,v 1.11 2004/07/20 13:59:12 tron Exp $
+$NetBSD: patch-ac,v 1.12 2004/09/21 07:43:10 tron Exp $
 
---- helpers.cpp.orig   2004-04-23 22:23:28.000000000 +0200
-+++ helpers.cpp        2004-07-20 15:48:50.000000000 +0200
-@@ -319,7 +319,25 @@
-   // strip the html tags
-   for (u = 0; u < buffLength; u++) {
-     c = stringToStrip[u];
--    if (c == '<') IncludeFlag=5;
-+    if (u+7<buffLength && 
-+        ( 0 == strncmp(&stringToStrip[u],"<script",7) ||
-+        0 == strncmp(&stringToStrip[u],"<SCRIPT",7) ) )
-+      IncludeFlag = 6;
-+    else if (u+8<buffLength &&
-+        ( 0 == strncmp(&stringToStrip[u],"</script",8) ||
-+        0 == strncmp(&stringToStrip[u],"</SCRIPT",8) ) )
-+      IncludeFlag = 5;
-+    else if (IncludeFlag == 6 && (c == '>' || c == '<') )
-+      IncludeFlag = 6;
-+    else if (c == '<') {
-+      IncludeFlag=5;
-+      if (u+4<buffLength &&
-+        ( 0 == strncmp(&stringToStrip[u],"<br",3) 
-+        || 0 == strncmp(&stringToStrip[u],"<td",3) 
-+        || 0 == strncmp(&stringToStrip[u],"<tr",3) )
-+        && Buff[BuffIdx-1] != '\n' )
-+        Buff[BuffIdx++] = '\n';
-+    }
-     else if (c == '>') IncludeFlag=10;
-     else if (IncludeFlag==10) {
-       if ((BuffIdx > 0) && (c == ' ') &&
-@@ -530,7 +548,8 @@
+--- helpers.cpp.orig   2004-08-31 02:40:13.000000000 +0200
++++ helpers.cpp        2004-09-21 09:40:39.000000000 +0200
+@@ -120,9 +120,7 @@
+ 
+ bool strToFloat(const char *str, float &x)
+ {
+-  char *end = 0;
+-  x = strtof(str, &end);
+-  return end != str && *end == 0;
++  return (sscanf(str, "%f", &x) == 1);
+ }
+ 
+ float calculateBidIncrement(float currentBid,  const char *currency)
+@@ -580,7 +578,8 @@
          return PB_OUTBID;
        else if (strstr(Buff, "You have been outbid"))
          return PB_OUTBID;



Home | Main Index | Thread Index | Old Index