mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
Add config option for pgp key fetching
This commit is contained in:
parent
796a84bd1a
commit
682040319e
3 changed files with 11 additions and 3 deletions
4
cmd.go
4
cmd.go
|
@ -300,6 +300,10 @@ func handleConfig(option, value string) bool {
|
|||
config.Provides = true
|
||||
case "noprovides":
|
||||
config.Provides = false
|
||||
case "pgpfetch":
|
||||
config.PGPFetch = true
|
||||
case "nopgpfetch":
|
||||
config.PGPFetch = false
|
||||
case "a", "aur":
|
||||
mode = ModeAUR
|
||||
case "repo":
|
||||
|
|
|
@ -63,6 +63,7 @@ type Configuration struct {
|
|||
CleanAfter bool `json:"cleanAfter"`
|
||||
GitClone bool `json:"gitclone"`
|
||||
Provides bool `json:"provides"`
|
||||
PGPFetch bool `json:"pgpfetch"`
|
||||
}
|
||||
|
||||
var version = "5.688"
|
||||
|
@ -146,6 +147,7 @@ func defaultSettings(config *Configuration) {
|
|||
config.MakepkgBin = "makepkg"
|
||||
config.NoConfirm = false
|
||||
config.PacmanBin = "pacman"
|
||||
config.PGPFetch = true
|
||||
config.PacmanConf = "/etc/pacman.conf"
|
||||
config.GpgFlags = ""
|
||||
config.MFlags = ""
|
||||
|
|
|
@ -183,11 +183,13 @@ func install(parser *arguments) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if config.PGPFetch {
|
||||
err = checkPgpKeys(do.Aur, do.Bases, srcinfosStale)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if len(arguments.targets) > 0 || arguments.existsArg("u") {
|
||||
err := passToPacman(arguments)
|
||||
|
|
Loading…
Reference in a new issue