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

_______________________________________________
Pkg-tcltk-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-tcltk-devel

Reply via email to