Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aur-sync: implement agrep #496

Closed
wants to merge 1 commit into from
Closed

aur-sync: implement agrep #496

wants to merge 1 commit into from

Conversation

AladW
Copy link
Member

@AladW AladW commented Jan 8, 2019

This is similar to git's "did you mean", for purely virtual packages in
the AUR. A package search alone does not suffice, since package
names may differ in minute ways. (For example, foo-pkg vs foo_pkg.)

Implementation is done using agrep from the tre package. Potential
candidates are presented to the user.


This does not work with chroot builds, as the pacman (sys)root cannot be specified to expac.

This is similar to git's "did you mean", for purely virtual packages in
the AUR. A package search alone does not suffice, since package
names may differ in minute ways. (For example, foo-pkg vs foo_pkg.)

Implementation is done using agrep from the tre package. Potential
candidates are presented to the user.
@AladW AladW removed this from the 🤷 milestone Jan 21, 2019
@AladW
Copy link
Member Author

AladW commented Feb 20, 2019

While it is unlikely the AUR ever includes a provides search, as noted this won't work with chroot builds (#438), and can't be nicely implemented due to tre/agrep limitations.

@AladW AladW closed this Feb 20, 2019
@AladW AladW deleted the levenshtein branch February 20, 2019 02:29
@AladW AladW added wontfix and removed feature labels Feb 20, 2019
@Morganamilo
Copy link
Contributor

Not sure if you follow the ML but the provides patch it at least making some progress now.

@AladW
Copy link
Member Author

AladW commented Feb 20, 2019

As much progress as my babushka has in fighting capitalist America.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants