summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/scripts/maintainers.go16
1 files changed, 12 insertions, 4 deletions
diff --git a/util/scripts/maintainers.go b/util/scripts/maintainers.go
index a45758147d..0474b77f90 100644
--- a/util/scripts/maintainers.go
+++ b/util/scripts/maintainers.go
@@ -177,6 +177,8 @@ func match_file(fname string, files []string) (bool, error) {
}
func find_maintainer(fname string) {
+ var success bool
+
for _, subsystem := range subsystems {
matched, err := match_file(fname, subsystem.file)
if err != nil {
@@ -184,16 +186,20 @@ func find_maintainer(fname string) {
return
}
if matched && subsystem.name != "THE REST" {
+ success = true
fmt.Println(fname, "is in subsystem",
subsystem.name)
fmt.Println("Maintainers: ", subsystem.maintainer)
- return
}
}
- fmt.Println(fname, "has no subsystem defined in MAINTAINERS")
+ if !success {
+ fmt.Println(fname, "has no subsystem defined in MAINTAINERS")
+ }
}
func find_unmaintained(fname string) {
+ var success bool
+
for _, subsystem := range subsystems {
matched, err := match_file(fname, subsystem.file)
if err != nil {
@@ -201,12 +207,14 @@ func find_unmaintained(fname string) {
return
}
if matched && subsystem.name != "THE REST" {
+ success = true
fmt.Println(fname, "is in subsystem",
subsystem.name)
- return
}
}
- fmt.Println(fname, "has no subsystem defined in MAINTAINERS")
+ if !success {
+ fmt.Println(fname, "has no subsystem defined in MAINTAINERS")
+ }
}
func main() {