1
0
mirror of https://github.com/Jguer/yay synced 2024-07-03 08:51:44 +00:00

Compare commits

..

2 Commits

Author SHA1 Message Date
Aino L. Spring
7f1ef31f66
Merge 7a4f812a5f into 5149e3714d 2024-06-23 20:22:10 -05:00
Jo
5149e3714d
fix(query): match empty pacman -Si with AUR info (#2459) 2024-06-21 10:06:02 +02:00

View File

@ -45,6 +45,10 @@ func syncInfo(ctx context.Context, run *runtime.Runtime,
pkgS = query.RemoveInvalidTargets(run.Logger, pkgS, run.Cfg.Mode)
aurS, repoS := packageSlices(pkgS, run.Cfg, dbExecutor)
if len(repoS) == 0 && len(aurS) == 0 {
aurS = dbExecutor.InstalledRemotePackageNames()
}
if len(aurS) != 0 {
noDB := make([]string, 0, len(aurS))
@ -64,7 +68,7 @@ func syncInfo(ctx context.Context, run *runtime.Runtime,
}
}
if len(repoS) != 0 {
if len(repoS) != 0 || (len(aurS) == 0 && len(repoS) == 0) {
arguments := cmdArgs.Copy()
arguments.ClearTargets()
arguments.AddTarget(repoS...)