mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 10:01:53 -05:00
fix(cmdArgs): deglobal cmd args
This commit is contained in:
4
query.go
4
query.go
@@ -198,7 +198,7 @@ func syncSearch(pkgS []string, alpmHandle *alpm.Handle) (err error) {
|
||||
}
|
||||
|
||||
// SyncInfo serves as a pacman -Si for repo packages and AUR packages.
|
||||
func syncInfo(pkgS []string, alpmHandle *alpm.Handle) error {
|
||||
func syncInfo(pkgS []string, alpmHandle *alpm.Handle, cmdArgs *settings.Arguments) error {
|
||||
var info []*rpc.Pkg
|
||||
missing := false
|
||||
pkgS = removeInvalidTargets(pkgS)
|
||||
@@ -240,7 +240,7 @@ func syncInfo(pkgS []string, alpmHandle *alpm.Handle) error {
|
||||
|
||||
if len(info) != 0 {
|
||||
for _, pkg := range info {
|
||||
PrintInfo(pkg)
|
||||
PrintInfo(pkg, cmdArgs.ExistsDouble("i"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user