mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Error if buildjni= is present but no native code was packaged
This commit is contained in:
parent
25a8dd5af4
commit
edda052000
2 changed files with 16 additions and 7 deletions
|
|
@ -688,6 +688,7 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
|
|||
vercode = None
|
||||
version = None
|
||||
foundid = None
|
||||
nativecode = None
|
||||
for line in p.stdout.splitlines():
|
||||
if line.startswith("package:"):
|
||||
pat = re.compile(".*name='([a-zA-Z0-9._]*)'.*")
|
||||
|
|
@ -702,7 +703,12 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
|
|||
m = pat.match(line)
|
||||
if m:
|
||||
version = m.group(1)
|
||||
elif line.startswith("native-code:"):
|
||||
nativecode = line[12:]
|
||||
|
||||
if thisbuild.get('buildjni') is not None:
|
||||
if nativecode is None or "'" not in nativecode:
|
||||
raise BuildException("Native code should have been built but none was packaged")
|
||||
if thisbuild['novcheck']:
|
||||
vercode = thisbuild['vercode']
|
||||
version = thisbuild['version']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue