mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 02:50:12 +01:00
Don't look for strings in unrelated projects
This commit is contained in:
parent
e642561676
commit
f2a1a83455
@ -590,10 +590,13 @@ class vcs_bzr(vcs):
|
||||
p.stdout.splitlines()]
|
||||
|
||||
def retrieve_string(app_dir, string, xmlfiles=None):
|
||||
|
||||
res_dir = os.path.join(app_dir, 'res')
|
||||
|
||||
if xmlfiles is None:
|
||||
xmlfiles = []
|
||||
for r,d,f in os.walk(app_dir):
|
||||
if r.endswith('/res/values'):
|
||||
for r,d,f in os.walk(res_dir):
|
||||
if r.endswith('/values'):
|
||||
xmlfiles += [os.path.join(r,x) for x in f if x.endswith('.xml')]
|
||||
|
||||
string_search = None
|
||||
|
Loading…
Reference in New Issue
Block a user