On Fri, Jan 26, 2007 at 08:34:47AM +0100, Christian Perrier wrote:
> Definitely..:)

> I'm afraid that my NMU, intended for simple l10n stuff, just revealed
> that problem.

> > I believe you MUST be able to remove a package more than once,
> > idempotently (policy 6.2), but currently, you cannot.  Hence I think
> > the bug is serious.  (Apologies if I'm wrong about that.)
> > For example, dpkg can't always remove the package if brokenly installed.

> Sounds like an RC issue to me, yes.

> > Possible solutions:
> > 1. in postrm, check if dir exists before cd; or

> I have another solution to propose: *no* cd in the directory:

> why not have:

> case "$1" in
>     remove)
>        echo -n "Removing hash symlinks in /etc/ssl/certs ..."
>        find /etc/ssl/certs -type l -print | while read h
>        do
>          test -f $h || rm -f $h
>        done
>        echo done.
>        ;;

> Minimal (untested) change, but that should make it, no?

> Another brutal solution is of course testing the existence of the
> directory before running the find on it

Yes, this change appears to be sufficient to solve the current problem. 
You'll want to quote the "$h", btw.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
[EMAIL PROTECTED]                                   http://www.debian.org/


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

Reply via email to