mirror of
https://github.com/Jguer/yay
synced 2024-08-31 05:39:29 +00:00
Fixes Ignore Group and Ignore Pkg. References #39
This commit is contained in:
parent
467b7794c2
commit
37883c7d8b
15
upgrade/u.go
15
upgrade/u.go
|
@ -253,6 +253,21 @@ func repo(local []alpm.Package) (Slice, error) {
|
|||
|
||||
slice := Slice{}
|
||||
for _, pkg := range local {
|
||||
for _, ignorePkg := range config.AlpmConf.IgnorePkg {
|
||||
if pkg.Name() == ignorePkg {
|
||||
continue primeloop
|
||||
}
|
||||
}
|
||||
|
||||
for _, ignoreGroup := range config.AlpmConf.IgnoreGroup {
|
||||
for _, group := range pkg.Groups().Slice() {
|
||||
if group == ignoreGroup {
|
||||
continue primeloop
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
newPkg := pkg.NewVersion(dbList)
|
||||
if newPkg != nil {
|
||||
slice = append(slice, Upgrade{pkg.Name(), newPkg.DB().Name(), pkg.Version(), newPkg.Version()})
|
||||
|
|
Loading…
Reference in a new issue