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:
6be27ed
)
Helpful error message when aapt missing
author
Ciaran Gultnieks
<ciaran@ciarang.com>
Mon, 17 Jun 2013 20:49:43 +0000
(21:49 +0100)
committer
Ciaran Gultnieks
<ciaran@ciarang.com>
Mon, 17 Jun 2013 20:49:43 +0000
(21:49 +0100)
fdroidserver/update.py
patch
|
blob
|
history
diff --git
a/fdroidserver/update.py
b/fdroidserver/update.py
index ee25daf6d349ec6dbc19bd234e61ec01adc76803..eca4cbdafac77b4a75bb5419a05a609c34d60b9c 100644
(file)
--- a/
fdroidserver/update.py
+++ b/
fdroidserver/update.py
@@
-266,7
+266,10
@@
def scan_apks(apps, apkcache, repodir, knownapks):
thisinfo['size'] = os.path.getsize(apkfile)
thisinfo['permissions'] = []
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],
stdout=subprocess.PIPE)
output = p.communicate()[0]