@@ -180,7 +180,7 @@ impl Workspaces {
180
180
} )
181
181
. collect ( ) ;
182
182
183
- // TODO As of this writing, we have two distinct packages called
183
+ // TODO As of this writing, we have three distinct packages called
184
184
// "dpd-client":
185
185
//
186
186
// - There's one in the "dendrite" repo. This is used by:
@@ -189,6 +189,8 @@ impl Workspaces {
189
189
// - `ddm` (in Maghemite)
190
190
// - `ddmd` (in Maghemite)
191
191
// - `mgd` (via `mg-lower`) (in Maghemite)
192
+ // - There's one in the "lldpd" repo. This is used by:
193
+ // - `lldpd` (in lldpd)
192
194
// - There's one in the "omicron" repo. This is used by:
193
195
// - `wicketd` (in Omicron)
194
196
// - `omicron-sled-agent` (in Omicron)
@@ -211,12 +213,11 @@ impl Workspaces {
211
213
//
212
214
// To keep things working, we just have this function always report the
213
215
// one in the Omicron repo.
214
- if server_pkgname == "dpd-client" && found_in_workspaces. len ( ) == 2 {
215
- if found_in_workspaces[ 0 ] . 0 . name ( ) == "omicron" {
216
- return Ok ( found_in_workspaces[ 0 ] ) ;
217
- }
218
- if found_in_workspaces[ 1 ] . 0 . name ( ) == "omicron" {
219
- return Ok ( found_in_workspaces[ 1 ] ) ;
216
+ if server_pkgname == "dpd-client" && found_in_workspaces. len ( ) == 3 {
217
+ if let Some ( rv) =
218
+ found_in_workspaces. iter ( ) . find ( |w| w. 0 . name ( ) == "omicron" )
219
+ {
220
+ return Ok ( * rv) ;
220
221
}
221
222
}
222
223
ensure ! (
0 commit comments