[Libreoffice-commits] core.git: bin/find-german-comments
Philipp Weissenbacher
p.weissenbacher at gmail.com
Thu Sep 25 01:40:42 PDT 2014
bin/find-german-comments | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 76034b4962027155a44b1c6aab665ac12fecf952
Author: Philipp Weissenbacher <p.weissenbacher at gmail.com>
Date: Thu Sep 18 23:40:32 2014 +0200
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 at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/bin/find-german-comments b/bin/find-german-comments
index 7e48b9f..2288bcc 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)
More information about the Libreoffice-commits
mailing list