[Pkg-emboss-devel] Bug#435991: Bug#435991: Bug#435991: emboss-explorer: crontest failure find: /var/www/emboss-explorer: No such file or directory

Charles Plessy charles-debian-nospam at plessy.org
Mon Aug 6 11:08:40 UTC 2007


Le Mon, Aug 06, 2007 at 12:21:31PM +0200, Adeodato Simó a écrit :
> * Charles Plessy [Mon, 06 Aug 2007 19:07:50 +0900]:
> 
> > Strictly speaking, this paragraph asks about checking for programs, not
> > directories. Would this desserve a wishlist bug against the Policy ?
> 
> Why would you want to check for directories instead of programs? The way
> to check if a package is removed but not purged is to check if its
> executables (or other *files*) exist, not if a directory exists. The
> admin may have placed some files of their own in the directory, and in
> that case a removal will *not* remove the directory (because it's not
> empty); if in that case you check the directory exists, later calls to
> the executables will fail because the package is actually removed.

Well, in our particular case, we are talking about this :

0 0 * * *	root	find /var/www/emboss-explorer/output -mindepth 1 -maxdepth 1 -atime 1 -exec rm -rf {} \;

We could test some files from the pacakge as a readout of its
installation status, but I am still thinking that it is more
straightforward to test for the presence of the directory to be cleaned.
Also, as a bonus, it will actually have a chance to do some real work
after package removal.

Have a nice day,

-- 
Charles Plessy
http://charles.plessy.org
Wako, Saitama, Japan




More information about the Pkg-emboss-devel mailing list