|
|
@ -114,13 +114,6 @@ type hookByWeight []*release.Hook
|
|
|
|
func (x hookByWeight) Len() int { return len(x) }
|
|
|
|
func (x hookByWeight) Len() int { return len(x) }
|
|
|
|
func (x hookByWeight) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
|
|
|
|
func (x hookByWeight) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
|
|
|
|
func (x hookByWeight) Less(i, j int) bool {
|
|
|
|
func (x hookByWeight) Less(i, j int) bool {
|
|
|
|
if x[i].Weight == x[j].Weight {
|
|
|
|
|
|
|
|
return x[i].Name < x[j].Name
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return x[i].Weight < x[j].Weight
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x hookByWeight) LessFixed(i, j int) bool {
|
|
|
|
|
|
|
|
if x[i].Weight == x[j].Weight {
|
|
|
|
if x[i].Weight == x[j].Weight {
|
|
|
|
ordering := make(map[string]int, len(releaseutil.InstallOrder))
|
|
|
|
ordering := make(map[string]int, len(releaseutil.InstallOrder))
|
|
|
|
for v, k := range releaseutil.InstallOrder {
|
|
|
|
for v, k := range releaseutil.InstallOrder {
|
|
|
|