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

Re: Bug#311344: Replacing lpr-ppd with lprng removes printer database



* A Mennucc (debdev@tonelli.sns.it) [050601 13:38]:
> On Tue, May 31, 2005 at 01:42:36PM +0200, Michael Piefel wrote:
> > Package: lpr-ppd
> > Severity: grave
> > Justification: causes non-serious data loss
> > 
> > Replacing lpr-ppd with lprng should be a breeze, I read somewhere. But
> > after the change, I was left with no /etc/printcap and a dead link to
> > that location from /etc/lprng/printcap. Clearly, there is an upgrade
> > path missing, even if lprng???s config format may be slightly different.
> 
> 
> /etc/printcap is a "conffile" of lpr-ppd ; if
> lpr-ppd is removed, /etc/printcap will still be there ;
> but if you purge  lpr-ppd  , dpkg will delete /etc/printcap ,
> since it is not a conffile of lprng
> 
> I see no easy way to solve this problem, since lpr-ppd was
> removed from Debian some time ago
> 
> 1) one way would be to have a dummy lpr-ppd package that depends
>  on lprng, and that does not have /etc/printcap as a conffile

If you drop the conffile, it won't be deleted. So, e.g. adding an
updated lpr-ppd in the next point release would work - just, that there
won't be another woody point release :(

Also, just an empty dummy package w/o marking that file as conffile (and
w/o shipping it at all) works.


Cheers,
Andi



Reply to: