yay icon indicating copy to clipboard operation
yay copied to clipboard

Strange problem with -Si option - yay can't find a package that exists

Open jw0k opened this issue 3 years ago • 1 comments

Affected Version

yay v10.1.2 - libalpm v12.0.2

Describe the bug

I have my own repository of Arch packages hosted on github. In my pacman.conf I have these 2 lines:

[nestrepo]
Server = https://github.com/jw0k/nestrepo/releases/download/current/

In that repository I have a package named mads-fixed. In AUR there is a package called mads. When I run:

yay -Si mads-fixed

The package is found in my repository:

Repository      : nestrepo
Name            : mads-fixed
Version         : 2.1.0-2
Description     : Multi-pass crossassembler designed for 6502 and 65816 processors
Architecture    : x86_64
URL             : https://github.com/tebe6502/Mad-Assembler
Licenses        : unknown
Groups          : None
Provides        : mads
Depends On      : glibc
Optional Deps   : None
Conflicts With  : mads
Replaces        : None
Download Size   : 178.12 KiB
Installed Size  : 375.78 KiB
Packager        : Unknown Packager
Build Date      : Wed 12 Aug 2020 09:10:28 PM CEST
Validated By    : MD5 Sum  SHA-256 Sum  Signature

However, running yay -Si mads gives the following error:

error: package 'mads' was not found

If I remove my repository from pacman.conf it starts working again:

~/temp ➜ yay -Si mads
:: Querying AUR...
Repository      : aur
Name            : mads
Keywords        : 6502  assembler  atari
Version         : 2.1.0-2
Description     : MADS is a multi-pass crossassembler designed for 6502 and 65816 processors
URL             : http://mads.atari8.info/
AUR URL         : https://aur.archlinux.org/packages/mads
Groups          : None
Licenses        : unknown
Provides        : mads
Depends On      : glibc
Make Deps       : fpc
Check Deps      : None
Optional Deps   : None
Conflicts With  : None
Maintainer      : marcinn
Votes           : 0
Popularity      : 0.000000
First Submitted : Sun 27 Oct 2019 08:55:16 AM CET
Last Modified   : Sat 27 Jun 2020 04:12:16 AM CEST
Out-of-date     : No

Reproduction Steps

As described above.

Expected behavior

I would expect that mads will be found in AUR after running yay -Si mads.

jw0k avatar Jan 05 '21 13:01 jw0k

Seems to be a provides issue, will see if there's a quick fix

Jguer avatar Jan 29 '21 21:01 Jguer

Is it related?

# works
> yay -Si mopidy
Repository      : community
Name            : mopidy
...

# works
> yay -Si mopidy-ytmusic
:: Querying AUR...
Repository      : aur
Name            : mopidy-ytmusic
...

# finds only pkg in community repo
# even though it claims to query AUR
> yay -Si mopidy mopidy-ytmusic
:: Querying AUR...
error: package 'mopidy-ytmusic' was not found
Repository      : community
Name            : mopidy
...

 -> exit status 1

cprn avatar Nov 22 '22 16:11 cprn

Fixed in https://github.com/Jguer/yay/commit/096ff7a544935cb343b9dbe34fb6803d49d2e277

Jguer avatar Feb 21 '23 01:02 Jguer