[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ucf: Diversion of /u/b/ucf by etcgit



Hi Manoj,

Manoj Srivastava <srivasta@debian.org> wrote:
> On Sun, Feb 22 2009, Jörg Sommer wrote:
>
>> Manoj Srivastava <srivasta@debian.org> wrote:
>>> On Sun, Feb 22 2009, Jörg Sommer wrote:
>>>> Manoj Srivastava <srivasta@debian.org> wrote:
>>>>> On Sat, Feb 21 2009, Jörg Sommer wrote:
>>>>>>
>>>>>> Right, but when I hook into apt-get, I can get the configuration file
>>>>>> shipped with the packages. But that has nothing to do with ucf.
>>>>>
>>>>>         What does "hook into apt-get" mean?
>>>>
>>>> I use the hooks Pre-Install-Pkgs and Post-Invoke as provided by apt-get.
>>>
>>>>>         What happens if I do a dpkg -i?
>>>>
>>>> Nothing. You have to update the branches by hand.
>>>
>>>         And yet you are proposing to divert ucf?
>>
>> What do you suggest should happen when you run dpkg -i? What
>> should etcgit do?
>
>         etcgit should work whether or not it was aptitude, synaptic,
>  apt-get, or dpkg which was used to install the package.
>
>         The part I am worried about is whether the wrapper allows ucf to
>  do its job; namely, ask the use what they want to do with any changes
>  in configuration files.

I've changed the wrapper of ucf to do nothing and pass full control over
to ucf until enable_ucf_wrapper is set to yes in /etc/etcgit.conf. This
isn't set by default, so after installation of the package the user has
to enable the wrapper manually. Therefore, ucf works the same as without
etcgit until the user sets the variable.

Is this fine for you? Can I upload the package?

What do you prever what I should do with the manual page? Should I divert
the manual page, too, so the user gets the manual page of the ucf wrapper
when he types “man ucf” or should I let the manual page stay and add a
manual page for the diverted ucf?

1. man ucf gives original manual page and man ucf.etcgit give the manual
   page for the wrapper, while ucf is the wrapper and ucf.etcgit is the
   original ucf. This has the advantage that you get the commands and
   options of ucf with “man ucf.”

2. man ucf explains ucf was redirected and the user has to look at man
   ucf.etcgit to find the options of ucf.

Bye, Jörg.
-- 
Wer einen Traum verwirklichen will, muss erst aufwachen.


Reply to: