summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPhilipp Weissenbacher <p.weissenbacher@gmail.com>2014-09-18 23:40:32 +0200
committerCaolán McNamara <caolanm@redhat.com>2014-09-25 08:40:14 +0000
commit76034b4962027155a44b1c6aab665ac12fecf952 (patch)
tree108539075a1183e5353730fee096feb60b91bd64 /bin
parent030812e5dce29080f3fd24bbd7bdd2b6b4ec649e (diff)
Restore searching in sub directories
With earlier version of fgc, one could cd into a sub directory and use fgc to find the German comments in there. This change restores that behaviour again. Change-Id: I2fa30ff98af0418c7531b94f19ff0b81f76abddd Reviewed-on: https://gerrit.libreoffice.org/11522 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/find-german-comments6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/find-german-comments b/bin/find-german-comments
index 7e48b9f19e20..2288bcc820fd 100755
--- a/bin/find-german-comments
+++ b/bin/find-german-comments
@@ -351,7 +351,11 @@ class Parser:
for path in lines:
baseDir = self.first_elem(path)
- if not baseDir in directory_whitelist:
+
+ # Support searching within sub directories
+ if directory is '.':
+ self.check_file(path.strip())
+ elif not baseDir in directory_whitelist:
print ("Missing path %s " % baseDir)
elif directory_whitelist[baseDir] is 0:
# print ("Scan path %s " % baseDir)