1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-13 02:30:11 +01:00

Don't look for strings in unrelated projects

This commit is contained in:
Ciaran Gultnieks 2014-03-16 08:43:54 +00:00
parent e642561676
commit f2a1a83455

View File

@ -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