vn971 / rua

Build tool for Arch Linux providing control, review and jailed build options
GNU General Public License v3.0
424 stars 42 forks source link

Interactively Skip updates #158

Open samyak-jain opened 3 years ago

samyak-jain commented 3 years ago

I understand that we can currently skip certain packages using ---ignore or using IgnorePkg but I would love if we could have the ability to skip an update in the interactive menu. This would be much more convenient for me.

Let me know if it's something that you would like added and I can work on submitting a PR.

vn971 commented 3 years ago

@samyak-jain Hey, that's an interesting question, I sometimes struggle with it myself. Usually I run the upgrade command, abort it, and then install the individual packages separately, manually.. So I do agree that there could be something to improve for this workflow

That being said, how would you see this feature working? E.g. what screen appears to the user first, what are the possible responses to the window by the user, etc ?

Morganamilo commented 3 years ago

If you want some prior art you can look at the upgrade menu in yay/paru

vn971 commented 3 years ago

@Morganamilo :+1: that's a very good remark.

I'd advise not to start with other clients because that limits potentially new ideas. But after coming up with few ideas of what we'd want to build, definitely check how other package managers do it. A lot of other people thought about other approaches already => there's a very high probability that it'd be best to copy the other approach.

samyak-jain commented 3 years ago

I was thinking something along the lines of it being part of the existing menu. When reviewing a package we get options like S for shellcheck, M to merge, O to accept, so we might want to just add another option than can skip this package. I don't know how other package managers do it since this is the only one I've used but this approach makes a lot of sense to me.

samyak-jain commented 3 years ago

@vn971 What do you think regarding this?

cplir-c commented 3 months ago

Maybe like F to fix package version (i.e. don't mention it again), v to ignore this version of the package (specifically just this version), and i to ignore it once (but still show it next time)?