mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-05 22:08:27 +00:00
Sort dependencies when displaying result of verify.
This commit is contained in:
@@ -194,8 +194,17 @@ func aptlySnapshotVerify(cmd *commander.Command, args []string) error {
|
|||||||
fmt.Printf("All dependencies are satisfied.\n")
|
fmt.Printf("All dependencies are satisfied.\n")
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("Missing dependencies (%d):\n", len(missing))
|
fmt.Printf("Missing dependencies (%d):\n", len(missing))
|
||||||
|
deps := make(sort.StringSlice, len(missing))
|
||||||
|
i := 0
|
||||||
for _, dep := range missing {
|
for _, dep := range missing {
|
||||||
fmt.Printf(" %s\n", dep.String())
|
deps[i] = dep.String()
|
||||||
|
i++
|
||||||
|
}
|
||||||
|
|
||||||
|
sort.Strings(deps)
|
||||||
|
|
||||||
|
for _, dep := range deps {
|
||||||
|
fmt.Printf(" %s\n", dep)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user