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

Re: Bug#87124: shouldn't remove /var/state/apt if set in apt.conf



On Thu, Feb 22, 2001 at 05:41:35PM -0700, Jason Gunthorpe wrote:

> > I think the postinst shouldn't just remove /var/state/apt if the apt.conf
> > file referenes it.
> There is no legitimate reason for doing this, I consider it to be quite
> broken.

I think I managed it by copying the example apt.conf to /etc/apt and
modifying it afterwards.

> > The preinst script should check whether there are references to the
> > /var/state/apt directory, and, if so, leave the symlink it creates in place.
> That turns out to be considerably difficult, I think we actually decided
> it might be impossible to do 100% correctly.

Perhaps you could just grep for /var/state, and if it occurs, ask the user
if they need the symlink? Priority 'low'?

I wrote some scripts that parsed apt's packagelists and needed symlinks that
pointed to them; naturally, the transition broke this as well. Surely,
leaving a symlink around in /var/state wouldn't hurt?

Andrew

-- 
            Andrew Korn (Korn Andras) <korn@chardonnay.math.bme.hu>
             Finger korn@chardonnay.math.bme.hu for pgp key. QOTD:
               Definition of Terror: A female Klingon with PMS.



Reply to: