mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
fix query info with -Si
This commit is contained in:
parent
82a4b30484
commit
ba143bdb36
@ -211,7 +211,7 @@ func passToPacman(op string, pkgs []string, flags []string) error {
|
||||
args = append(args, flags...)
|
||||
}
|
||||
|
||||
if strings.Contains(op, "-Q") || op == "Si" {
|
||||
if strings.Contains(op, "-Q") || op == "-Si" {
|
||||
cmd = exec.Command(config.PacmanBin, args...)
|
||||
} else {
|
||||
args = append([]string{config.PacmanBin}, args...)
|
||||
|
13
query.go
13
query.go
@ -158,6 +158,15 @@ func syncInfo(pkgS []string, flags []string) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
//repo always goes first
|
||||
if len(repoS) != 0 {
|
||||
err = passToPacman("-Si", repoS, flags)
|
||||
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if len(aurS) != 0 {
|
||||
q, err := rpc.Info(aurS)
|
||||
if err != nil {
|
||||
@ -168,10 +177,6 @@ func syncInfo(pkgS []string, flags []string) (err error) {
|
||||
}
|
||||
}
|
||||
|
||||
if len(repoS) != 0 {
|
||||
err = passToPacman("-Si", repoS, flags)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user