mirror of
https://github.com/Jguer/yay
synced 2024-07-21 10:16:10 +00: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
|
||||
}
|
||||
|
||||
func makeOrder() *Order {
|
||||
func newOrder() *Order {
|
||||
return &Order{
|
||||
make([]Base, 0),
|
||||
make([]db.IPackage, 0),
|
||||
|
@ -24,7 +24,7 @@ func makeOrder() *Order {
|
|||
}
|
||||
|
||||
func GetOrder(dp *Pool, noDeps, noCheckDeps bool) *Order {
|
||||
do := makeOrder()
|
||||
do := newOrder()
|
||||
|
||||
for _, target := range dp.Targets {
|
||||
dep := target.DepString()
|
||||
|
|
|
@ -64,7 +64,7 @@ type Pool struct {
|
|||
aurClient *aur.Client
|
||||
}
|
||||
|
||||
func makePool(dbExecutor db.Executor, aurClient *aur.Client) *Pool {
|
||||
func newPool(dbExecutor db.Executor, aurClient *aur.Client) *Pool {
|
||||
dp := &Pool{
|
||||
Targets: []Target{},
|
||||
Explicit: map[string]struct{}{},
|
||||
|
@ -393,7 +393,7 @@ func GetPool(ctx context.Context, pkgs []string,
|
|||
mode parser.TargetMode,
|
||||
ignoreProviders, noConfirm, provides bool,
|
||||
rebuild string, splitN int, noDeps bool, noCheckDeps bool, assumeInstalled []string) (*Pool, error) {
|
||||
dp := makePool(dbExecutor, aurClient)
|
||||
dp := newPool(dbExecutor, aurClient)
|
||||
|
||||
dp.Warnings = warnings
|
||||
err := dp.ResolveTargets(ctx, pkgs, mode, ignoreProviders, noConfirm, provides,
|
||||
|
|
Loading…
Reference in a new issue