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