mirror of
https://github.com/mudler/luet.git
synced 2025-08-30 21:52:10 +00:00
tree/pkglist: Now --deps orders for build/installation order
This commit is contained in:
parent
364b5648b4
commit
ee0e70ed3d
@ -192,6 +192,11 @@ func NewTreePkglistCommand() *cobra.Command {
|
||||
if err != nil {
|
||||
Fatal(err.Error())
|
||||
}
|
||||
ass := solution.SearchByName(p.GetPackageName())
|
||||
solution, err = solution.Order(reciper.GetDatabase(), ass.Package.GetFingerPrint())
|
||||
if err != nil {
|
||||
Fatal(err.Error())
|
||||
}
|
||||
SpinnerStop()
|
||||
|
||||
for _, pa := range solution {
|
||||
@ -251,7 +256,9 @@ func NewTreePkglistCommand() *cobra.Command {
|
||||
}
|
||||
fmt.Println(string(j2))
|
||||
default:
|
||||
sort.Strings(plist)
|
||||
if !deps {
|
||||
sort.Strings(plist)
|
||||
}
|
||||
for _, p := range plist {
|
||||
fmt.Println(p)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user