mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Also skip unmodified fields in the regex checks
Now it's close to 1s.
This commit is contained in:
parent
ea99add3da
commit
2711f1c868
1 changed files with 13 additions and 9 deletions
|
|
@ -484,11 +484,15 @@ valuetypes = {
|
||||||
# Check an app's metadata information for integrity errors
|
# Check an app's metadata information for integrity errors
|
||||||
def check_metadata(app):
|
def check_metadata(app):
|
||||||
for v in valuetypes:
|
for v in valuetypes:
|
||||||
for f in v.fields:
|
for k in v.fields:
|
||||||
v.check(app.get_field(f), app.id)
|
if k not in app._modified:
|
||||||
|
continue
|
||||||
|
v.check(app.__dict__[k], app.id)
|
||||||
for build in app.builds:
|
for build in app.builds:
|
||||||
for f in v.flags:
|
for k in v.flags:
|
||||||
v.check(build.get_flag(f), app.id)
|
if k not in build._modified:
|
||||||
|
continue
|
||||||
|
v.check(build.__dict__[k], app.id)
|
||||||
|
|
||||||
|
|
||||||
# Formatter for descriptions. Create an instance, and call parseline() with
|
# Formatter for descriptions. Create an instance, and call parseline() with
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue