// checkToolsSeries verifies that all the given possible tools are for the // given OS series. func checkToolsSeries(toolsList coretools.List, series string) error { toolsSeries := toolsList.AllSeries() if len(toolsSeries) != 1 { return fmt.Errorf("expected single series, got %v", toolsSeries) } if toolsSeries[0] != series { return fmt.Errorf("tools mismatch: expected series %v, got %v", series, toolsSeries[0]) } return nil }