Paludis-extras

back to: packages

collision-protect

Description:

This hook will prevent paludis from overwriting files already one the file system, by checking if each file to be installed already exists.

Author(s): dleverton

Dependencies:

  • none

Installation

without paludis-hooks installed

Just install the package.

Code:

paludis -i app-paludis/paludis-hooks-collision-protect

if you have paludis-hooks installed

Enable the collision-protect extended use flag in the /etc/paludis/use.conf file, by adding collision-protect to the line.

Code:

* PALUDIS_HOOKS: collision-protect .......

Then run:

Code:

paludis -i paludis-hooks --dl-reinstall if-use-changed

Enabling/Disabling the hook

To enable the hook you can use eselect with the command

Code:

eselect paludis-hook enable collision-protect

To disable the hook you can use eselect just like the example above shows, but by changing enable to disable like this

Code:

eselect paludis-hook disable collision-protect

See here for help on eselect with paludis support.

Configuration

You can disable collision protection for a subset of files by listing one or more files, directories or wildcard patterns in /etc/paludis/bashrc:

Code:

COLLISION_IGNORE="/usr/lib/foo /usr/lib/bar/*"

Note: if you are using Paludis 0.26 alpha 2 or earlier, you will need to do this for any files or directories with spaces in their names, as these are not fully support by Paludis.

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-collision-protect.git
				

scripts:

hook script (click to see) ( download )

    <?xml include( "src/app-paludis/paludis-hooks-collision-protect/collision-protect.bash.html"); ?>

Cool external links:.