mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
Set SigLevel to 0
Previous default SigLevels caused 3rd party databases to take a very long time to load and also to not load properly. Probably due to missing keys(?). Pacman takes a long time to check the databases. For now, always set to SigLevel 0 like how go-alpm did in its config parsing. Needs more looking into for a proper fix.
This commit is contained in:
parent
380cc142dc
commit
e6238d32fa
13
config.go
13
config.go
@ -350,19 +350,20 @@ func configureAlpm(conf *pacmanconf.Config) error {
|
||||
var err error
|
||||
|
||||
// TODO: set SigLevel
|
||||
sigLevel := alpm.SigPackage | alpm.SigPackageOptional | alpm.SigDatabase | alpm.SigDatabaseOptional
|
||||
localFileSigLevel := alpm.SigUseDefault
|
||||
remoteFileSigLevel := alpm.SigUseDefault
|
||||
//sigLevel := alpm.SigPackage | alpm.SigPackageOptional | alpm.SigDatabase | alpm.SigDatabaseOptional
|
||||
//localFileSigLevel := alpm.SigUseDefault
|
||||
//remoteFileSigLevel := alpm.SigUseDefault
|
||||
|
||||
for _, repo := range pacmanConf.Repos {
|
||||
// TODO: set SigLevel
|
||||
db, err := alpmHandle.RegisterSyncDb(repo.Name, sigLevel)
|
||||
db, err := alpmHandle.RegisterSyncDb(repo.Name, 0)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
db.SetServers(repo.Servers)
|
||||
db.SetUsage(toUsage(repo.Usage))
|
||||
|
||||
}
|
||||
|
||||
if err = alpmHandle.SetCacheDirs(pacmanConf.CacheDir...); err != nil {
|
||||
@ -404,7 +405,7 @@ func configureAlpm(conf *pacmanconf.Config) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if err = alpmHandle.SetDefaultSigLevel(sigLevel); err != nil {
|
||||
/*if err = alpmHandle.SetDefaultSigLevel(sigLevel); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@ -414,7 +415,7 @@ func configureAlpm(conf *pacmanconf.Config) error {
|
||||
|
||||
if err = alpmHandle.SetRemoteFileSigLevel(remoteFileSigLevel); err != nil {
|
||||
return err
|
||||
}
|
||||
}*/
|
||||
|
||||
if err = alpmHandle.SetDeltaRatio(pacmanConf.UseDelta); err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user