2010/11/7 Gonzalo Pérez de Olaguer Córdoba <g...@iies.es>:
> Package: apt-listchanges
> Version: 2.83
> Severity: critical
> Tags: patch
> Justification: breaks unrelated software
>
>
> I have tagged this bug as critical because the post removal script is
> not idempotent (policy requirement) and because aptitude install and
> remove operations fail as long as apt-listchanges postremoval script fails.

don't you think 'critical' is a bit too much? I don't consider
apt/aptitude so unrelated to apt-listchanges. 'serious' would have
been enough, but still RC.

> Before upgrading from lenny to squeeze I have started by upgrading
> aptitude. Due to dependencies, aptitude tells me to remove
> apt-listchanges. I say ok.
>
> During upgrade of aptitude and removal of apt-listchanges the following
> error appears:
>
> Desinstalando apt-listchanges ...
> mv: no se puede efectuar `stat' sobre
> «/etc/apt/apt.conf.d/20listchanges»: No existe el fichero o el
> directorio
> dpkg: error al procesar apt-listchanges (--remove):
>  el subproceso post-removal script devolvió el código de salida de error 1
>
> i.e., /etc/apt/apt-conf.d/20listchanges doesn't exist. That's true.
> /etc/apt/apt.conf.d/20listchanges.disabled also doesn't exist. What I
> have here is /etc/apt/listchanges.conf instead.
>
> Then I run manually /var/lib/dpkg/info/apt-listchanges.prerm and it runs
> ok.
>
> Then I run /varlib/dpkg/info/apt-listchanges.postrm and get the same
> error. It gets solved when I change the folowing line:
>
>  if [ "$1" = "remove" ]; then
> -    mv $hook $hook.disabled
> +    test -e $hook && mv $hook $hook.disabled
>  fi
>
> This way the script is idempotent (it can be run several times without
> failing).

Anyhow, I've just committed to the git repo your patch, and I'll
upload the package soon.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to