[Pkg-tcltk-devel] Bug#720143: {tcl, tk}8.5: leaves alternatives after purge: /usr/bin/tclsh, /usr/bin/wish
Matthias Klose
doko at debian.org
Wed Jan 8 21:14:30 UTC 2014
the removal is done in tcltk-defaults from experimental.
$ cat tcl.preinst
#!/bin/sh
set -e
case "$1" in
install|upgrade)
# Currently the alternatives mechanism is not used
if dpkg --compare-versions "$2" lt-nl "8.6.0+2"; then
update-alternatives --remove-all tclsh || true
fi
;;
[...]
I assume this works good enough in practice, but fails when a versioned tcl8.x
was installed without the tcl package installed. same for tk.
Matthias
More information about the Pkg-tcltk-devel
mailing list