Description:
This scpript asks you if you want to install the designated packages and continues if you type y, Y, yes, Yes or YES. Oherwise it terminates paludis.
Dependencies:
There are two scripts. One is a hook script, and the other is a _paludis_wrapper. The hook script goes to the .../hooks/common folder and is then symlinked to the right hook/ subfolder (see the exact locations below). The wrapper script goes to the /usr/bin/ folder.
You just have to make an alias:
Code:
alias paludis="/usr/bin/_paludis_wrapper.bash"
Now you can use paludis with a new option -a or - -ask
Code: Example
paludis -i -a openoffice paludis -ia openoffice paludis -i --ask openoffice
If you do not like the defauls settings for the hook, you can configure it in the
Location of configuration file:
/etc/paludis/hooks/config/paludis-ask.conf
Location of hook script:
/usr/share/paludis/hooks/common/paludis-ask.bash
Location of symlinks:
install_all_pre
uninstall_all_pre
fetch_all_pre
Location of wrapper script:
/usr/bin/_paludis_wrapper.bash
If you are interested in the sources, or helping develop, then the sources can be fetched from our anonymous git repo at:
Code:
git clone git://git.paludis-extras.org/app-paludis/paludis-hooks-ask.git
scripts:
hook script (click to see) ( download )
wrapper script (click to see) ( download )
sample configuration file (click to see) ( download )

