kisslinux / kiss

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

Add a hook to manipulate dependencies #272

Closed TAAPArthur closed 3 years ago

TAAPArthur commented 3 years ago

Created KISS_DEPEND_HOOK as a hook to transform the dependency file when read. This can be used to replace one package for another or completely remove a package. If not set, cat is used.

In my setup I have KISS_DEPEND_HOOK="sed s/libjpeg-turbo/libjpeg/" set. My use case is to swap out 2 fully compatible dependencies like libjpeg-turbo with libjpeg without having to detect and fork every single package to make this trivial change.

Disclaimer: I submitted this to one of the forks and it was rejected

dylanaraps commented 3 years ago

Thanks for the PR though I am not interested in this change. I will eventually tackle dependencies and add more flexibility to their use. Just give me some time. :)