mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-05-18 21:47:19 -04:00
checkupdates: Avoid variable/string names as CV
This commit is contained in:
@@ -433,6 +433,12 @@ def checkupdates_app(app, first=True):
|
|||||||
vercode = str(eval(op))
|
vercode = str(eval(op))
|
||||||
logging.debug("Applied vercode operation: %s -> %s" % (oldvercode, vercode))
|
logging.debug("Applied vercode operation: %s -> %s" % (oldvercode, vercode))
|
||||||
|
|
||||||
|
if version and any(version.startswith(s) for s in [
|
||||||
|
'${', # Gradle variable names
|
||||||
|
'@string/', # Strings we could not resolve
|
||||||
|
]):
|
||||||
|
version = "Unknown"
|
||||||
|
|
||||||
updating = False
|
updating = False
|
||||||
if version is None:
|
if version is None:
|
||||||
logmsg = "...{0} : {1}".format(app['id'], msg)
|
logmsg = "...{0} : {1}".format(app['id'], msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user