mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 10:01:53 -05:00
fix(dbExecutor): move dbExecutor to runtime config
This commit is contained in:
3
main.go
3
main.go
@@ -10,6 +10,7 @@ import (
|
||||
pacmanconf "github.com/Morganamilo/go-pacmanconf"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
|
||||
"github.com/Jguer/yay/v10/pkg/db"
|
||||
"github.com/Jguer/yay/v10/pkg/settings"
|
||||
"github.com/Jguer/yay/v10/pkg/text"
|
||||
)
|
||||
@@ -193,6 +194,8 @@ func main() {
|
||||
exitOnError(initVCS(runtime.VCSPath))
|
||||
config.Runtime.AlpmHandle, config.Runtime.PacmanConf, err = initAlpm(cmdArgs, config.PacmanConf)
|
||||
exitOnError(err)
|
||||
config.Runtime.DBExecutor, err = db.NewExecutor(config.Runtime.AlpmHandle)
|
||||
exitOnError(err)
|
||||
exitOnError(handleCmd(cmdArgs, config.Runtime.AlpmHandle))
|
||||
os.Exit(cleanup(config.Runtime.AlpmHandle))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user