On Mon, Mar 06, 2006 at 08:50:06PM +0100, Frederic Peters wrote:
> Justin Pryzby wrote:
> 
> > The source of the originally-reported problem is that files are
> > generated at install time which are not removed on purge:
> 
> Thanks for noticing this, this will be fixed in 2.1.99-4.
> 
> > There is another problem; these overwrite local changes to the file.
> > The files shouldn't be written if they exist; or, you should use a ucf
> > style mechanism to prompt the user with a diff.  It *might* be
> > considered sufficient to mark the file as generated, in the style of
> > /etc/modules.conf; this isn't clear to me, though:
> > 
> > { echo "# Do not edit .. This is a generated file .. run .. to regenerate 
> > it";\
> >   print-usb-usermap; } >$PACKAGE.usermap
> 
> This is actually explained in /usr/share/doc/libgphoto2-2/README.Debian:
Please also explain it in the file itself, perhaps with the suggestion
above, or with an > followed by an >> in postinst.

> > Also, please explain what is special about 2.1.6-5.1, used in postinst
> > for version comparison.
> 
> Well, it was an NMU but I think Julien Blache did it this way so the
> symlink is not added back if the user decided to remove it.
I still don't get it; anyway, I meant to add an explanation to
postinst.

Thanks
Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to