mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Also use adb via a full path
This commit is contained in:
parent
3dbf99a7f2
commit
a8d4c8705f
2 changed files with 5 additions and 2 deletions
|
@ -32,7 +32,7 @@ config = None
|
|||
|
||||
|
||||
def devices():
|
||||
p = FDroidPopen(["adb", "devices"])
|
||||
p = FDroidPopen([config['adb'], "devices"])
|
||||
if p.returncode != 0:
|
||||
raise Exception("An error occured when finding devices: %s" % p.output)
|
||||
lines = p.output.splitlines()
|
||||
|
@ -100,7 +100,7 @@ def main():
|
|||
logging.info("Installing %s..." % apk)
|
||||
for dev in devs:
|
||||
logging.info("Installing %s on %s..." % (apk, dev))
|
||||
p = FDroidPopen(["adb", "-s", dev, "install", apk])
|
||||
p = FDroidPopen([config['adb'], "-s", dev, "install", apk])
|
||||
fail = ""
|
||||
for line in p.output.splitlines():
|
||||
if line.startswith("Failure"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue