esniper: add patch to fix unrecognized e-bay log-in page

This commit is contained in:
Peter Simons 2014-03-23 22:30:48 +01:00
parent 13bc37ed3e
commit 4c5d093ae0
2 changed files with 15 additions and 1 deletions

View File

@ -11,7 +11,8 @@ stdenv.mkDerivation {
buildInputs = [ openssl curl ];
# Add support for CURL_CA_BUNDLE variable.
patches = [ ./find-ca-bundle.patch ];
# Fix <http://sourceforge.net/p/esniper/bugs/648/>.
patches = [ ./find-ca-bundle.patch ./fix-ebay-login.patch ];
postInstall = ''
sed <"frontends/snipe" >"$out/bin/snipe" \

View File

@ -0,0 +1,13 @@
--- esniper-orig/auction.c 2014-03-23 22:28:46.684289574 +0100
+++ esniper/auction.c 2014-03-23 22:24:00.540568653 +0100
@@ -424,7 +424,9 @@
if ((pp->srcId && !strcmp(pp->srcId, "SignInAlertSupressor"))||
(pp->pageName &&
(!strncasecmp(pp->pageName, "MyeBay", 6) ||
- !strncasecmp(pp->pageName, "My eBay", 7))
+ !strncasecmp(pp->pageName, "My eBay", 7) ||
+ !strncasecmp(pp->pageName, "Watch list", 10) ||
+ !strncasecmp(pp->pageName, "User Agreement", 10))
))
loginTime = time(NULL);
else if (pp->pageName &&