Skip to content

Commit 48eeb08

Browse files
committed
Reuse ems_required variable in getModules
1 parent a7a06b9 commit 48eeb08

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tcl/modfind.tcl.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2666,8 +2666,7 @@ proc getModules {dir {mod {}} {fetch_mtime 0} {search {}} {filter {}}} {
26662666

26672667
# if no indepth mode search, pass the depth level of the search query
26682668
# unless EMS need to be performed (findModules should fetch everything)
2669-
set depthlvl [expr {$indepth || [isExtraMatchSearchRequired $mod] ? 0 :\
2670-
$querydepth + 1}]
2669+
set depthlvl [expr {$indepth || $ems_required ? 0 : $querydepth + 1}]
26712670

26722671
array set found_list [findModules $dir $findmod $depthlvl $fetch_mtime]
26732672
}

0 commit comments

Comments
 (0)