mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 15:32:30 +03:00
checkupdates: match whole words
Match only whole words when looking for versionCode, versionName, etc. in manifests. A real build.gradle example: flutterVersionCode = '1' flutterVersionName = '1.0' ... defaultConfig { versionCode 53 versionName "2.0.3" } Before this change checkupdates was erroneously getting version code and version name from the first two lines and failing to find a new release.
This commit is contained in:
parent
da0d6393bd
commit
781b55f777
1 changed files with 5 additions and 5 deletions
|
@ -1348,11 +1348,11 @@ def remove_debuggable_flags(root_dir):
|
||||||
os.path.join(root, 'AndroidManifest.xml'))
|
os.path.join(root, 'AndroidManifest.xml'))
|
||||||
|
|
||||||
|
|
||||||
vcsearch_g = re.compile(r'''.*[Vv]ersionCode\s*=?\s*["']*([0-9]+)["']*''').search
|
vcsearch_g = re.compile(r'''\b[Vv]ersionCode\s*=?\s*["']*([0-9]+)["']*''').search
|
||||||
vnsearch_g = re.compile(r'''.*[Vv]ersionName\s*=?\s*(["'])((?:(?=(\\?))\3.)*?)\1.*''').search
|
vnsearch_g = re.compile(r'''\b[Vv]ersionName\s*=?\s*(["'])((?:(?=(\\?))\3.)*?)\1''').search
|
||||||
vnssearch_g = re.compile(r'''.*[Vv]ersionNameSuffix\s*=?\s*(["'])((?:(?=(\\?))\3.)*?)\1.*''').search
|
vnssearch_g = re.compile(r'''\b[Vv]ersionNameSuffix\s*=?\s*(["'])((?:(?=(\\?))\3.)*?)\1''').search
|
||||||
psearch_g = re.compile(r'''.*(packageName|applicationId)\s*=*\s*["']([^"']+)["'].*''').search
|
psearch_g = re.compile(r'''\b(packageName|applicationId)\s*=*\s*["']([^"']+)["']''').search
|
||||||
fsearch_g = re.compile(r'''.*(applicationIdSuffix)\s*=*\s*["']([^"']+)["'].*''').search
|
fsearch_g = re.compile(r'''\b(applicationIdSuffix)\s*=*\s*["']([^"']+)["']''').search
|
||||||
|
|
||||||
|
|
||||||
def app_matches_packagename(app, package):
|
def app_matches_packagename(app, package):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue