esniper: add patch to fix unrecognized e-bay log-in page
This commit is contained in:
parent
13bc37ed3e
commit
4c5d093ae0
@ -11,7 +11,8 @@ stdenv.mkDerivation {
|
|||||||
buildInputs = [ openssl curl ];
|
buildInputs = [ openssl curl ];
|
||||||
|
|
||||||
# Add support for CURL_CA_BUNDLE variable.
|
# 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 = ''
|
postInstall = ''
|
||||||
sed <"frontends/snipe" >"$out/bin/snipe" \
|
sed <"frontends/snipe" >"$out/bin/snipe" \
|
||||||
|
13
pkgs/applications/networking/esniper/fix-ebay-login.patch
Normal file
13
pkgs/applications/networking/esniper/fix-ebay-login.patch
Normal 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 &&
|
Loading…
x
Reference in New Issue
Block a user