garbas/collective.recipe.patch — pull request #2 by koodaamo (2011-12-07 21:16:40+00:00)
Title: added a 'no-uninstall' option to patch files not managed by buildout

Sometimes it would be useful to use buildout to patch files that are part of the buildout workflow, but cannot or should not be managed by buildout itself (installed, uninstalled, re-installed).

By default, buildout tries to manage the patched paths or eggs, so the recipe is not currently suitable for such an use case.

With these changes, it can be used for such purpose as well, by setting the newly added 'no-uninstall' option to 'true'. That will cause the recipe to not report the patched paths to buildout.

The patched paths are instead logged into a separate patch log file (.patch-cache.txt) to keep tabs on what has been patched.