skip directories starting with a dot when looking for dune.module
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 18 Dec 2016 11:58:14 +0000 (11:58 +0000)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 18 Dec 2016 11:58:14 +0000 (11:58 +0000)
Gbp-Pq: Name skip-dirs-starting-with-dot.patch

lib/dunemodules.lib

index ec07a3b626e04606150b1ad67eeb41d6e6622dfa..12276405e2026609cd23d3ebb9b36a266309f9e7 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"