mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 15:36:35 -04:00
Upgrade to latest official version and apply auth API patch not yet in
the official version. Approved by: antoine (implicit)
This commit is contained in:
parent
737a6362f2
commit
7a971b83a3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=477335
3 changed files with 17 additions and 7 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
PORTNAME= gogrepo
|
PORTNAME= gogrepo
|
||||||
PORTVERSION= 0.3a
|
PORTVERSION= 0.3a
|
||||||
|
PORT_REVISION= 2
|
||||||
CATEGORIES= games net
|
CATEGORIES= games net
|
||||||
|
|
||||||
MAINTAINER= se@FreeBSD.org
|
MAINTAINER= se@FreeBSD.org
|
||||||
|
@ -15,7 +16,7 @@ RUN_DEPENDS= ${PYTHONPREFIX_SITELIBDIR}/html5lib/html5parser.py:www/py-html5lib
|
||||||
|
|
||||||
USE_GITHUB= yes
|
USE_GITHUB= yes
|
||||||
GH_ACCOUNT= eddie3
|
GH_ACCOUNT= eddie3
|
||||||
GH_TAGNAME= c7f3dd0
|
GH_TAGNAME= d64d45a
|
||||||
|
|
||||||
USES= python shebangfix
|
USES= python shebangfix
|
||||||
SHEBANG_FILES= gogrepo.py
|
SHEBANG_FILES= gogrepo.py
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
TIMESTAMP = 1490357927
|
TIMESTAMP = 1534425381
|
||||||
SHA256 (eddie3-gogrepo-0.3a-c7f3dd0_GH0.tar.gz) = d6c35a08dc9d0d311dd93a767c197d17cb2f863d75c6d2febe3ce2d0ea6abf1e
|
SHA256 (eddie3-gogrepo-0.3a-d64d45a_GH0.tar.gz) = 02adc531637172e5f40bfd82ef5ea28c8cf86a3d00bfcfea805268499f697d97
|
||||||
SIZE (eddie3-gogrepo-0.3a-c7f3dd0_GH0.tar.gz) = 15045
|
SIZE (eddie3-gogrepo-0.3a-d64d45a_GH0.tar.gz) = 15041
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
--- gogrepo.py.orig 2017-04-18 19:27:22 UTC
|
--- gogrepo.py.orig 2018-05-23 15:45:06 UTC
|
||||||
+++ gogrepo.py
|
+++ gogrepo.py
|
||||||
@@ -4,7 +4,7 @@ from __future__ import print_function
|
@@ -4,7 +4,7 @@ from __future__ import print_function
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
__author__ = 'eddie3'
|
__author__ = 'eddie3'
|
||||||
__version__ = '0.3a'
|
__version__ = '0.3a'
|
||||||
__url__ = 'https://github.com/eddie3/gogrepo'
|
__url__ = 'https://github.com/eddie3/gogrepo'
|
||||||
@@ -110,7 +110,7 @@ HTTP_GAME_DOWNLOADER_THREADS = 4
|
@@ -113,7 +113,7 @@ HTTP_GAME_DOWNLOADER_THREADS = 4
|
||||||
HTTP_PERM_ERRORCODES = (404, 403, 503)
|
HTTP_PERM_ERRORCODES = (404, 403, 503)
|
||||||
|
|
||||||
# Save manifest data for these os and lang combinations
|
# Save manifest data for these os and lang combinations
|
||||||
|
@ -18,7 +18,16 @@
|
||||||
DEFAULT_LANG_LIST = ['en']
|
DEFAULT_LANG_LIST = ['en']
|
||||||
|
|
||||||
# These file types don't have md5 data from GOG
|
# These file types don't have md5 data from GOG
|
||||||
@@ -575,7 +575,7 @@ def cmd_login(user, passwd):
|
@@ -699,7 +699,7 @@ def cmd_login(user, passwd):
|
||||||
|
etree = html5lib.parse(page, namespaceHTMLElements=False)
|
||||||
|
for elm in etree.findall('.//script'):
|
||||||
|
if elm.text is not None and 'GalaxyAccounts' in elm.text:
|
||||||
|
- login_data['auth_url'] = elm.text.split("'")[1]
|
||||||
|
+ login_data['auth_url'] = elm.text.split("'")[3]
|
||||||
|
break
|
||||||
|
|
||||||
|
# fetch the login token
|
||||||
|
@@ -731,7 +731,7 @@ def cmd_login(user, passwd):
|
||||||
|
|
||||||
# perform two-step if needed
|
# perform two-step if needed
|
||||||
if login_data['two_step_url'] is not None:
|
if login_data['two_step_url'] is not None:
|
||||||
|
|
Loading…
Add table
Reference in a new issue