mirror of
https://github.com/Jguer/yay
synced 2024-10-02 22:33:47 +00:00
Support db/name for groups
This commit is contained in:
parent
c091460d8c
commit
fae0c506cc
|
@ -290,7 +290,7 @@ func getDepTree(pkgs []string) (*depTree, error) {
|
|||
continue
|
||||
}
|
||||
|
||||
_, isGroup := syncDb.PkgCachebyGroup(pkg)
|
||||
_, isGroup := syncDb.PkgCachebyGroup(name)
|
||||
if isGroup == nil {
|
||||
continue
|
||||
}
|
||||
|
|
16
install.go
16
install.go
|
@ -104,12 +104,20 @@ func install(parser *arguments) error {
|
|||
}
|
||||
|
||||
for _, pkg := range dc.Repo {
|
||||
arguments.addTarget(pkg.Name())
|
||||
arguments.addTarget(pkg.DB().Name() + "/" + pkg.Name())
|
||||
}
|
||||
|
||||
//for _, pkg := range repoTargets {
|
||||
// arguments.addTarget(pkg)
|
||||
//}
|
||||
dbList, err := alpmHandle.SyncDbs()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for _, pkg := range repoTargets {
|
||||
_, name := splitDbFromName(pkg)
|
||||
_, errdb := dbList.PkgCachebyGroup(name)
|
||||
if errdb == nil {
|
||||
arguments.addTarget(pkg)
|
||||
}
|
||||
}
|
||||
|
||||
if len(dc.Aur) == 0 && len(arguments.targets) == 0 {
|
||||
fmt.Println("There is nothing to do")
|
||||
|
|
Loading…
Reference in a new issue