bin/find-german-comments |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 76034b4962027155a44b1c6aab665ac12fecf952
Author: Philipp Weissenbacher <p.weissenbac...@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 <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@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)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to