mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10:29 +03:00
Small fixes to install.py
This commit is contained in:
parent
5ac855af69
commit
d857e43d86
1 changed files with 1 additions and 3 deletions
|
|
@ -25,7 +25,6 @@ from optparse import OptionParser
|
||||||
|
|
||||||
import common
|
import common
|
||||||
from common import FDroidPopen
|
from common import FDroidPopen
|
||||||
import metadata
|
|
||||||
|
|
||||||
options = None
|
options = None
|
||||||
config = None
|
config = None
|
||||||
|
|
@ -34,7 +33,6 @@ def devices():
|
||||||
p = FDroidPopen(["adb", "devices"])
|
p = FDroidPopen(["adb", "devices"])
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
raise Exception("An error occured when finding devices: %s" % p.stderr)
|
raise Exception("An error occured when finding devices: %s" % p.stderr)
|
||||||
devs = []
|
|
||||||
return [l.split()[0] for l in p.stdout.splitlines()[1:-1]]
|
return [l.split()[0] for l in p.stdout.splitlines()[1:-1]]
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -68,7 +66,7 @@ def main():
|
||||||
appid, vercode = common.apknameinfo(apkfile)
|
appid, vercode = common.apknameinfo(apkfile)
|
||||||
if appid not in apks:
|
if appid not in apks:
|
||||||
continue
|
continue
|
||||||
if vercodes[appid] and vc not in vercodes[appid]:
|
if vercodes[appid] and vercode not in vercodes[appid]:
|
||||||
continue
|
continue
|
||||||
apks[appid] = apkfile
|
apks[appid] = apkfile
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue