skip directories starting with a dot when looking for dune.module
authorAnsgar Burchardt <ansgar@debian.org>
Wed, 15 Jul 2020 10:29:39 +0000 (11:29 +0100)
committerAnsgar <ansgar@debian.org>
Wed, 15 Jul 2020 10:29:39 +0000 (11:29 +0100)
Gbp-Pq: Name skip-dirs-starting-with-dot.patch

lib/dunemodules.lib

index 7eb6099317248b1e5b2e3c1ef3279e646abfca6d..bcd8022ed4225372570def95f504647944b2745a 100644 (file)
@@ -250,7 +250,7 @@ find_modules_in_path() {
         while read m; do
           test -n "$m" && parse_control "$m"
         done <<EOFM
-        $(find -H "$dir" -name $CONTROL | $GREP -v 'dune-[-_a-zA-Z]/dune-[-a-zA-Z_]*-[0-9]\{1,\}.[0-9]\{1,\}/')
+        $(find -H "$dir" -name '.?*' -prune -o -name $CONTROL -print | $GREP -v 'dune-[-_a-zA-Z]/dune-[-a-zA-Z_]*-[0-9]\{1,\}.[0-9]\{1,\}/')
 EOFM
          else
         parse_control "$dir"