loader: scan_group does not recursively scan in case of nested project
authorJean Privat <jean@pryen.org>
Mon, 24 Aug 2015 19:37:59 +0000 (15:37 -0400)
committerJean Privat <jean@pryen.org>
Mon, 24 Aug 2015 19:37:59 +0000 (15:37 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/loader.nit

index 7d1c564..bd01e9c 100644 (file)
@@ -535,7 +535,10 @@ redef class ModelBuilder
                for f in p.files do
                        var fp = p/f
                        var g = get_mgroup(fp)
-                       if g != null then scan_group(g)
+                       # Recursively scan for groups of the same project
+                       if g != null and g.mproject == mgroup.mproject then
+                               scan_group(g)
+                       end
                        identify_file(fp)
                end
        end