Skip to content

Commit

Permalink
Reuse ems_required variable in getModules
Browse files Browse the repository at this point in the history
  • Loading branch information
xdelaruelle committed Jun 11, 2023
1 parent a7a06b9 commit 48eeb08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tcl/modfind.tcl.in
Original file line number Diff line number Diff line change
Expand Up @@ -2666,8 +2666,7 @@ proc getModules {dir {mod {}} {fetch_mtime 0} {search {}} {filter {}}} {

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

array set found_list [findModules $dir $findmod $depthlvl $fetch_mtime]
}
Expand Down

0 comments on commit 48eeb08

Please sign in to comment.