[csw-maintainers] hooks in pkg-get

Dagobert Michelsen dam at opencsw.org
Thu Nov 12 20:11:39 CET 2009


Hi Phil,

Am 12.11.2009 um 19:06 schrieb Philip Brown:
> On Wed, Nov 11, 2009 at 12:12 AM, Dagobert Michelsen  
> <dam at opencsw.org> wrote:
>> Am 10.11.2009 um 22:00 schrieb Philip Brown:
>>> If the package does not function when [pkgadd'd directly], then the
>>> package is improperly put together.
>>
>> Yes. And if the package has already been released like the old  
>> esound?
>> Than what? Without hooks your doomed.
>
> doomed, is a strong word :)
> If one chooses to not use automated package management tools, then by
> definition, one will be stuck doing more things manually.
>
> However that does point out, that if a maintainer is tempted to try to
> do "clever" things in a hook for mistake cleanup purposes, said
> maintainer should instead implement this "cleverness" in normal
> preinstall type scripts, so that it will work with straight pkgadd.
>
> So.. if this applies to you, Mr. Michelsen, please RE-fix your esound
> package ;-)

If a package erranously removes a modified config-file on removal
I obviously cannot fix that in the new package and the old package
is already out. But I could put a copy aside in a postremove-hook
and copy it back-in before the new package is installed :)


Best regards

   -- Dago



More information about the maintainers mailing list