mirror of
https://github.com/Jguer/yay.git
synced 2025-10-08 00:04:37 -04:00
chore(dep): rename pool creator
This commit is contained in:
parent
ac13060bfd
commit
d02321bdc9
@ -15,7 +15,7 @@ type Order struct {
|
|||||||
Runtime stringset.StringSet
|
Runtime stringset.StringSet
|
||||||
}
|
}
|
||||||
|
|
||||||
func makeOrder() *Order {
|
func newOrder() *Order {
|
||||||
return &Order{
|
return &Order{
|
||||||
make([]Base, 0),
|
make([]Base, 0),
|
||||||
make([]db.IPackage, 0),
|
make([]db.IPackage, 0),
|
||||||
@ -24,7 +24,7 @@ func makeOrder() *Order {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GetOrder(dp *Pool, noDeps, noCheckDeps bool) *Order {
|
func GetOrder(dp *Pool, noDeps, noCheckDeps bool) *Order {
|
||||||
do := makeOrder()
|
do := newOrder()
|
||||||
|
|
||||||
for _, target := range dp.Targets {
|
for _, target := range dp.Targets {
|
||||||
dep := target.DepString()
|
dep := target.DepString()
|
||||||
|
@ -64,7 +64,7 @@ type Pool struct {
|
|||||||
aurClient *aur.Client
|
aurClient *aur.Client
|
||||||
}
|
}
|
||||||
|
|
||||||
func makePool(dbExecutor db.Executor, aurClient *aur.Client) *Pool {
|
func newPool(dbExecutor db.Executor, aurClient *aur.Client) *Pool {
|
||||||
dp := &Pool{
|
dp := &Pool{
|
||||||
Targets: []Target{},
|
Targets: []Target{},
|
||||||
Explicit: map[string]struct{}{},
|
Explicit: map[string]struct{}{},
|
||||||
@ -393,7 +393,7 @@ func GetPool(ctx context.Context, pkgs []string,
|
|||||||
mode parser.TargetMode,
|
mode parser.TargetMode,
|
||||||
ignoreProviders, noConfirm, provides bool,
|
ignoreProviders, noConfirm, provides bool,
|
||||||
rebuild string, splitN int, noDeps bool, noCheckDeps bool, assumeInstalled []string) (*Pool, error) {
|
rebuild string, splitN int, noDeps bool, noCheckDeps bool, assumeInstalled []string) (*Pool, error) {
|
||||||
dp := makePool(dbExecutor, aurClient)
|
dp := newPool(dbExecutor, aurClient)
|
||||||
|
|
||||||
dp.Warnings = warnings
|
dp.Warnings = warnings
|
||||||
err := dp.ResolveTargets(ctx, pkgs, mode, ignoreProviders, noConfirm, provides,
|
err := dp.ResolveTargets(ctx, pkgs, mode, ignoreProviders, noConfirm, provides,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user