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

Re: Making zope Pre-Depends on zopectl



On Fri, Oct 24, 2003 at 03:26:02PM -0400, Aaron M. Ucko wrote:
> Luca - De Whiskey's - De Vitis <luca@debian.org> writes:
> > As per policy, i'm here to ask for "consensus". I need zopectl in purge phase
> Are pre-depends actually guaranteed to be around then?  

No:

] $ dpkg -s ash | grep -iE '^(Status|Pre-Depends):'
] Status: install ok installed
] Pre-Depends: dash

] $ (echo '#!/bin/sh'; echo "echo \"That's all folks\"") | sudo dd of=/var/lib/dpkg/info/ash.postrm
] 0+1 records in
] 0+1 records out

] $ sudo dpkg --remove ash
] (Reading database ... 133193 files and directories currently installed.)
] Removing ash ...
] That's all folks

] $ dpkg -s ash | grep -iE '^(Status|Pre-Depends):'
] Status: deinstall ok config-files
] Pre-Depends: dash

] $ sudo dpkg --remove dash
] (Reading database ... 133188 files and directories currently installed.)
] Removing dash ...

] $ sudo dpkg --purge ash
] (Reading database ... 133183 files and directories currently installed.)
] Removing ash ...
] Purging configuration files for ash ...
] That's all folks

] $ dpkg -s ash | grep -iE '^(Status|Pre-Depends):'
] Status: purge ok not-installed
 
> Why not just have zopectl store the location in some fixed file that
> zope's postrm reads?

Or have "prerm remove" run zopectl and save the output somewhere in /var,
and "postrm purge" delete the stuff listed in that file, then delete
that file?

Cheers,
aj

-- 
Anthony Towns <aj@humbug.org.au> <http://azure.humbug.org.au/~aj/>
I don't speak for anyone save myself. GPG signed mail preferred.

Australian DMCA (the Digital Agenda Amendments) Under Review!
	-- http://azure.humbug.org.au/~aj/blog/copyright/digitalagenda

Attachment: pgp64e5xiRs4Z.pgp
Description: PGP signature


Reply to: