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

Allow setting a custom command for AUR packages instead of manually adding support for AUR helpers #473

Open
Tank-Missile opened this issue Feb 4, 2021 · 7 comments

Comments

@Tank-Missile
Copy link

AUR helpers come and go. First I moved from pacaur to yay, and now I'm trying to figure out where to move to next now that yay is in maintenance mode. There are many AUR helpers even beyond what the wiki lists, and supporting all of them manually means not all helpers end up getting supported. Asking for a helper to be supported means waiting for the next release before it can be used with octopi. To alleviate this maintenance burden, why not toss out the old method of supporting AUR helpers and leave it up to the user? Environment variables could be used for supplying the AUR command with the list of packages to be installed, removed, upgraded, etc. Here's what the settings menu could look like:

Screenshot_20210204_132953

@aarnt
Copy link
Owner

aarnt commented Feb 4, 2021

Hi @Tank-Missile ,

I understand your point and it'd be cool if we could easily solve this.
The problem is that it is not enough to specify the command that the helper uses to install packages. It needs also the command to check for outdated AUR packages and, the worst, the code to build the package list of searched packages.

You can take a look at

to see what I'm talking about.

@Morganamilo
Copy link

I feel it would be a lot easier to just use the AUR RPC for this instead of relying on a helper.

@aarnt
Copy link
Owner

aarnt commented Feb 5, 2021

@Morganamilo
Copy link

Yes, though you can find the rendered version of that link here: https://aur.archlinux.org/rpc

@aarnt
Copy link
Owner

aarnt commented Feb 5, 2021

Nice.
So your idea is using RPC to search and get info and helper to install/update/show outdated pkgs?

@Morganamilo
Copy link

Yeah that's probably best. Use the RPC to get information, use the helper to actually do stuff.

@aarnt
Copy link
Owner

aarnt commented Feb 5, 2021

@Morganamilo
Hmm, thanks. I'll take a look and make some tests.

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

No branches or pull requests

3 participants