kitsunyan / pakku

Pacman wrapper with AUR support
GNU General Public License v3.0
130 stars 8 forks source link

Option to always remove build dependencies. #17

Open bernimoses opened 6 years ago

bernimoses commented 6 years ago

Would it be possible to add a option in /etc/pakku.conf to always remove build dependencies, if they were installed beforehand.

BurhanDanger commented 6 years ago

pakku autoremoves make dependencies for the package it installs.

For previously installed make deps use pacman -Rns $(pacman -Qtdq) to clean system , then never install with other helpers ( I guess )

bernimoses commented 6 years ago

With "always removed" i mean, that i don't have to confirm Do you want to remove these packages? [Y/n] the removal of those packages (pass --noconfirm to pacman).

This could also be done for installing build dependencies Proceed with installation? [Y/n].

It could look like this:

BuildDepsNoConfirm

or something more general:

AddBuildDepsOptions = --noconfirm
RemoveBuildDepsOptions = --noconfirm
BurhanDanger commented 6 years ago

Oh, ok , I misunderstood

kitsunyan commented 6 years ago

I think it would be better to implement it as part of batch interaction feature request. I think there should be Batch option in which you can specify what to do automatically and how to answer these questions. For instance, now pakku may ask twice to remove build dependencies. It will ask for unnecessary at all build dependencies and for build dependencies which are optional for some packages.

bernimoses commented 6 years ago

As long as there is a option to disable / deactivate / set default for most of the questions, i'm ok with it.