1
0
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:
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()] 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