mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 11:00:10 +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()]
|
p.stdout.splitlines()]
|
||||||
|
|
||||||
def retrieve_string(app_dir, string, xmlfiles=None):
|
def retrieve_string(app_dir, string, xmlfiles=None):
|
||||||
|
|
||||||
|
res_dir = os.path.join(app_dir, 'res')
|
||||||
|
|
||||||
if xmlfiles is None:
|
if xmlfiles is None:
|
||||||
xmlfiles = []
|
xmlfiles = []
|
||||||
for r,d,f in os.walk(app_dir):
|
for r,d,f in os.walk(res_dir):
|
||||||
if r.endswith('/res/values'):
|
if r.endswith('/values'):
|
||||||
xmlfiles += [os.path.join(r,x) for x in f if x.endswith('.xml')]
|
xmlfiles += [os.path.join(r,x) for x in f if x.endswith('.xml')]
|
||||||
|
|
||||||
string_search = None
|
string_search = None
|
||||||
|
Loading…
Reference in New Issue
Block a user