mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
Fetch CV @string values at checkupdates
This commit is contained in:
parent
13a8b1fd0a
commit
990321d33d
2 changed files with 18 additions and 3 deletions
|
@ -902,9 +902,19 @@ def fetch_real_name(app_dir, flavour):
|
|||
matches = name_search(line)
|
||||
if matches:
|
||||
return retrieve_string(xml_dir, matches.group(1))
|
||||
|
||||
return ''
|
||||
|
||||
# Retrieve the version name
|
||||
def version_name(original, app_dir, flavour):
|
||||
for f in manifest_paths(app_dir, flavour):
|
||||
if not f.endswith(".xml"):
|
||||
continue
|
||||
xml_dir = os.path.join(f[:-19], 'res', 'values')
|
||||
string = retrieve_string(xml_dir, original)
|
||||
if len(string) > 0:
|
||||
return string
|
||||
return original
|
||||
|
||||
# Extract some information from the AndroidManifest.xml at the given path.
|
||||
# Returns (version, vercode, package), any or all of which might be None.
|
||||
# All values returned are strings.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue