chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
253bd92
)
checkupdates: fix google play check method
author
Marcus Hoffmann
<bubuiic@aol.com>
Tue, 12 Sep 2017 23:40:09 +0000
(
01:40
+0200)
committer
Marcus Hoffmann
<bubuiic@aol.com>
Tue, 12 Sep 2017 23:40:09 +0000
(
01:40
+0200)
This has never worked with python3 and was also not properly adapted to
apps as objects. So we fix both of these issues.
fdroidserver/checkupdates.py
patch
|
blob
|
history
diff --git
a/fdroidserver/checkupdates.py
b/fdroidserver/checkupdates.py
index 098280b29c6892627cd20b8531603f6dcba30b0c..856a514c1404330a7ead0351f097951f05f35264 100644
(file)
--- a/
fdroidserver/checkupdates.py
+++ b/
fdroidserver/checkupdates.py
@@
-279,7
+279,7
@@
def check_gplay(app):
req = urllib.request.Request(url, None, headers)
try:
resp = urllib.request.urlopen(req, None, 20)
- page = resp.read()
+ page = resp.read()
.decode()
except urllib.error.HTTPError as e:
return (None, str(e.code))
except Exception as e:
@@
-531,7
+531,7
@@
def main():
apps = common.read_app_args(options.appid, allapps, False)
if options.gplay:
- for app
in apps
:
+ for app
id, app in apps.items()
:
version, reason = check_gplay(app)
if version is None:
if reason == '404':