mirror of
https://github.com/Jguer/yay
synced 2024-10-01 13:53:32 +00:00
Respect provided targets when using -Si flag (#2460)
This commit is contained in:
parent
5149e3714d
commit
0165486bf4
6
query.go
6
query.go
|
@ -46,9 +46,15 @@ func syncInfo(ctx context.Context, run *runtime.Runtime,
|
|||
aurS, repoS := packageSlices(pkgS, run.Cfg, dbExecutor)
|
||||
|
||||
if len(repoS) == 0 && len(aurS) == 0 {
|
||||
if run.Cfg.Mode != parser.ModeRepo {
|
||||
aurS = dbExecutor.InstalledRemotePackageNames()
|
||||
}
|
||||
|
||||
if run.Cfg.Mode != parser.ModeAUR {
|
||||
repoS = dbExecutor.InstalledSyncPackageNames()
|
||||
}
|
||||
}
|
||||
|
||||
if len(aurS) != 0 {
|
||||
noDB := make([]string, 0, len(aurS))
|
||||
|
||||
|
|
Loading…
Reference in a new issue