Updated vendor dependencies

This commit is contained in:
morganamilo 2018-04-17 13:35:32 +01:00
parent 683890c1b8
commit 6ab876258b
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E
2 changed files with 6 additions and 3 deletions

2
Gopkg.lock generated
View file

@ -5,7 +5,7 @@
branch = "master"
name = "github.com/jguer/go-alpm"
packages = ["."]
revision = "bc954af9b2ced79e4db54ce6ab3c6a24d769e98b"
revision = "11d6aadda57c8fb4f93969333cb990677d28d4f9"
[[projects]]
branch = "master"

View file

@ -55,7 +55,7 @@ type PacmanConfig struct {
XferCommand string
NoUpgrade []string
NoExtract []string
CleanMethod string
CleanMethod []string
SigLevel SigLevel
LocalFileSigLevel SigLevel
RemoteFileSigLevel SigLevel
@ -256,6 +256,10 @@ lineloop:
}
}
if len(conf.CleanMethod) == 0 {
conf.CleanMethod = []string{"KeepInstalled"}
}
if len(conf.CacheDir) == 0 {
conf.CacheDir = []string{"/var/cache/pacman/pkg/"} //should only be set if the config does not specify this
}
@ -271,7 +275,6 @@ func (conf *PacmanConfig) SetDefaults() {
conf.GPGDir = "/etc/pacman.d/gnupg/"
conf.LogFile = "/var/log/pacman.log"
conf.UseDelta = 0.7
conf.CleanMethod = "KeepInstalled"
conf.SigLevel = SigPackage | SigPackageOptional | SigDatabase | SigDatabaseOptional
conf.LocalFileSigLevel = SigUseDefault