mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
use simple ast+operator based calculator for evaluating Vercode Operation
This commit is contained in:
parent
79a022400f
commit
24b20d7668
2 changed files with 25 additions and 1 deletions
|
|
@ -434,7 +434,7 @@ def checkupdates_app(app):
|
|||
.format(field=app.VercodeOperation))
|
||||
oldvercode = str(int(vercode))
|
||||
op = app.VercodeOperation.replace("%c", oldvercode)
|
||||
vercode = str(eval(op))
|
||||
vercode = str(common.calculate_math_string(op))
|
||||
logging.debug("Applied vercode operation: %s -> %s" % (oldvercode, vercode))
|
||||
|
||||
if version and any(version.startswith(s) for s in [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue