mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
Don't error about native code if buildjni=no
This commit is contained in:
parent
26154127e6
commit
53aba5365f
1 changed files with 8 additions and 2 deletions
|
|
@ -809,8 +809,14 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
|
|||
elif line.startswith("native-code:"):
|
||||
nativecode = line[12:]
|
||||
|
||||
if thisbuild['buildjni']:
|
||||
if nativecode is None or "'" not in nativecode:
|
||||
# Ignore empty strings or any kind of space/newline chars that we don't
|
||||
# care about
|
||||
if nativecode is not None:
|
||||
nativecode = nativecode.strip()
|
||||
nativecode = None if not nativecode else nativecode
|
||||
|
||||
if thisbuild['buildjni'] != 'no':
|
||||
if nativecode is not None:
|
||||
raise BuildException("Native code should have been built but none was packaged")
|
||||
if thisbuild['novcheck']:
|
||||
vercode = thisbuild['vercode']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue