mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 18:50:11 +02:00
Helpful error message when aapt missing
This commit is contained in:
parent
6be27ed572
commit
9b28d1ef1c
@ -266,7 +266,10 @@ def scan_apks(apps, apkcache, repodir, knownapks):
|
|||||||
thisinfo['size'] = os.path.getsize(apkfile)
|
thisinfo['size'] = os.path.getsize(apkfile)
|
||||||
thisinfo['permissions'] = []
|
thisinfo['permissions'] = []
|
||||||
thisinfo['features'] = []
|
thisinfo['features'] = []
|
||||||
p = subprocess.Popen([os.path.join(sdk_path, 'platform-tools', 'aapt'),
|
if not os.path.exists(aapt_path):
|
||||||
|
print "Missing aapt - check aapt_path in your config"
|
||||||
|
sys.exit(1)
|
||||||
|
p = subprocess.Popen([aapt_path,
|
||||||
'dump', 'badging', apkfile],
|
'dump', 'badging', apkfile],
|
||||||
stdout=subprocess.PIPE)
|
stdout=subprocess.PIPE)
|
||||||
output = p.communicate()[0]
|
output = p.communicate()[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user