kisslinux / kiss

KISS Linux - Package Manager
https://kisslinux.github.io
MIT License
464 stars 62 forks source link

Silently ignore input when alternative is already active #287

Closed TAAPArthur closed 3 years ago

TAAPArthur commented 3 years ago

Previously kiss a would error if the alternative provided was already in use. Now such a case is silently ignored. This is useful when there is a post-install kiss_hook automatically and intelligently swapping files using preferences pre-generated with kiss-preferred.

dylanaraps commented 3 years ago

I think it's best that users manually manage their alternatives to understand each modification that is made and the implications of doing so. The feature was not designed around being run inside scripts.

Thanks for the PR.