chiark / gitweb /
Don't look for strings in unrelated projects
authorCiaran Gultnieks <ciaran@ciarang.com>
Sun, 16 Mar 2014 08:43:54 +0000 (08:43 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Sun, 16 Mar 2014 08:43:54 +0000 (08:43 +0000)
fdroidserver/common.py

index c63a4aa11c987615ae3a0f06547ffa68e164ea31..388e3970b9212e08df1e9fee249fab31e2d01981 100644 (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