aura icon indicating copy to clipboard operation
aura copied to clipboard

AUR search does not work for packages with "-" in their names.

Open emekoi opened this issue 8 months ago • 3 comments

It seems like the splitting performed by Aura for AUR package searching is broken somehow. Any search queries with a "-" return an empty set of results even if manually picking a subterm to search does return a result. For example:

~ 
❯ aura -Ai d-feet
Repository    : aur
Name          : d-feet
Version       : 0.3.17+r16+gf9bd211-3
AUR Status    : Up to Date
Maintainer    : vitaliikuzhdin
Project URL   : https://gitlab.gnome.org/Archive/d-feet
AUR URL       : https://aur.archlinux.org/packages/d-feet
License       : GPL-2.0-or-later
Groups        : 
Provides      : 
Depends On    : dconf glib2 gtk3>=3.9.4 hicolor-icon-theme libwnck3 python python-configparser python-gobject
Make Deps     : gobject-introspection>=0.9.6 meson>=0.50 python-pycodestyle yelp-tools
Optional Deps : 
Check Deps    : 
Votes         : 2
Popularity    : 0.10
Description   : D-Bus debugger for GNOME
Keywords      : 
Submitted     : 2024-09-06
Updated       : 2024-12-08

~ 
❯ aura -As d-feet

~ 
❯ aura -As feet
aur/d-feet 0.3.17+r16+gf9bd211-3 (2 | 0.10) [installed]
    D-Bus debugger for GNOME
aur/twenty-twenty-twenty-bin 1.0.0-1 (1 | 0.75) 
    20-20-20 is a program that alerts every 20 minutes to look something at 20 feet away for 20 seconds, written in Golang.
aur/blinker-git 2.1.1.r4.g721406b-1 (0 | 0.00) 
    Inspired by the 20 20 20 rule, this is a little reminder to look 20 feet away from your screen every 20 minutes. Keep your eyes healthy, reduce eye strain, prevent headaches and increase productivity.
aur/blinker-bin 2.1.0-6 (0 | 0.00) 
    Inspired by the 20 20 20 rule, this is a little reminder to look 20 feet away from your screen every 20 minutes. Keep your eyes healthy, reduce eye strain, prevent headaches and increase productivity.
aur/twenty-twenty-twenty 1.0.0-1 (0 | 0.00) 
    20-20-20 is a program that alerts every 20 minutes to look something at 20 feet away for 20 seconds, written in Golang.

I am currently using Aura 4.0.8, and I think this behavior is somewhat new. At least I don't remember search being broken the entire time I've been using Aura (since the Haskell version).

emekoi avatar Apr 12 '25 20:04 emekoi

❯ aura -As d-feet

~

Searching for the exact name eh. Thanks for the report, let me revisit this.

fosskers avatar Apr 13 '25 21:04 fosskers

I'm experiencing the same issue, except even if I type in the FULL package name, no search results show. Despite me being able to install the package if I type the full name in.

The package in question is fm-relm4-git.

I was able to install it, but typing in aura -As fm, aura As fm-relm4, or even using regex or any other variation shows no search results. Including using the full package name: aura -As fm-relm4-git.

EDIT: Nevermind, aura -As relm4 was the only option that does show the package, which is weird when aura -As fm and aura -As relm shows nothing.

Gh0stGames avatar Aug 14 '25 01:08 Gh0stGames

This is likely due to git being present in the name. I'll look into this.

fosskers avatar Aug 14 '25 06:08 fosskers