mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
build: remove unused, unmaintained Kivy build method
This code has never been used and contains some insecure uses of shell=True Building Kivy apps should be done with the buildozer=yes method. The buildozer method should probably be moved to a provisioner once that is in place.
This commit is contained in:
parent
b0b9f2f601
commit
513c95894c
7 changed files with 6 additions and 181 deletions
|
|
@ -213,7 +213,6 @@ build_flags_order = [
|
|||
'patch',
|
||||
'gradle',
|
||||
'maven',
|
||||
'kivy',
|
||||
'buildozer',
|
||||
'output',
|
||||
'srclibs',
|
||||
|
|
@ -256,7 +255,6 @@ class Build(dict):
|
|||
self.patch = []
|
||||
self.gradle = []
|
||||
self.maven = False
|
||||
self.kivy = False
|
||||
self.buildozer = False
|
||||
self.output = None
|
||||
self.srclibs = []
|
||||
|
|
@ -299,7 +297,7 @@ class Build(dict):
|
|||
raise AttributeError("No such attribute: " + name)
|
||||
|
||||
def build_method(self):
|
||||
for f in ['maven', 'gradle', 'kivy', 'buildozer']:
|
||||
for f in ['maven', 'gradle', 'buildozer']:
|
||||
if self.get(f):
|
||||
return f
|
||||
if self.output:
|
||||
|
|
@ -310,7 +308,7 @@ class Build(dict):
|
|||
def output_method(self):
|
||||
if self.output:
|
||||
return 'raw'
|
||||
for f in ['maven', 'gradle', 'kivy', 'buildozer']:
|
||||
for f in ['maven', 'gradle', 'buildozer']:
|
||||
if self.get(f):
|
||||
return f
|
||||
return 'ant'
|
||||
|
|
@ -871,7 +869,7 @@ def post_metadata_parse(app):
|
|||
elif v == [False]:
|
||||
return ['no']
|
||||
|
||||
_bool_allowed = ('disable', 'kivy', 'maven', 'buildozer')
|
||||
_bool_allowed = ('disable', 'maven', 'buildozer')
|
||||
|
||||
builds = []
|
||||
if 'builds' in app:
|
||||
|
|
@ -1114,7 +1112,7 @@ def write_yaml(mf, app):
|
|||
value = getattr(build, field)
|
||||
if field == 'gradle' and value == ['off']:
|
||||
value = [ruamel.yaml.scalarstring.SingleQuotedScalarString('off')]
|
||||
if field in ('disable', 'kivy', 'maven', 'buildozer'):
|
||||
if field in ('disable', 'maven', 'buildozer'):
|
||||
if value == 'no':
|
||||
continue
|
||||
elif value == 'yes':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue