mirror of
https://github.com/Jguer/yay
synced 2024-07-01 07:56:37 +00:00
Compare commits
3 Commits
8d044b9387
...
f9491cd9d1
Author | SHA1 | Date | |
---|---|---|---|
|
f9491cd9d1 | ||
|
5149e3714d | ||
|
9ed9b0b4e1 |
|
@ -35,10 +35,10 @@ If you are migrating from another AUR helper, you can simply install Yay with th
|
|||
The initial installation of Yay can be done by cloning the PKGBUILD and
|
||||
building with makepkg:
|
||||
|
||||
We start with updating the package lists and make sure we have the `base-devel` package group installed.
|
||||
We make sure we have the `base-devel` package group installed.
|
||||
|
||||
```sh
|
||||
pacman -Sy --needed git base-devel
|
||||
pacman -S --needed git base-devel
|
||||
git clone https://aur.archlinux.org/yay.git
|
||||
cd yay
|
||||
makepkg -si
|
||||
|
|
6
query.go
6
query.go
|
@ -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...)
|
||||
|
|
Loading…
Reference in New Issue
Block a user