mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
Fixes Ignore Group and Ignore Pkg. References #39
This commit is contained in:
parent
467b7794c2
commit
37883c7d8b
1 changed files with 15 additions and 0 deletions
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