diff options
author | Philipp Weissenbacher <p.weissenbacher@gmail.com> | 2014-09-18 23:40:32 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-09-25 08:40:14 +0000 |
commit | 76034b4962027155a44b1c6aab665ac12fecf952 (patch) | |
tree | 108539075a1183e5353730fee096feb60b91bd64 /bin | |
parent | 030812e5dce29080f3fd24bbd7bdd2b6b4ec649e (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-x | bin/find-german-comments | 6 |
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) |