When one installs ksshaskpass, it fails updating alternatives. See the last line in the log below urpmi ksshaskpass ############################################################################################################ Alternatives, version 1.7 - Copyright (C) 2001 Red Hat, Inc. Ce produit peut être librement distribué selon les termes de la licence publique GNU (GPL). utilisation : alternatives --install <lien> <nom> <chemin> <priorité> [--initscript <service>] [--family <family>] [--slave <lien> <nom> <chemin>]* alternatives --remove <nom> <chemin> alternatives --auto <nom> alternatives --config <nom> alternatives --display <nom> alternatives --set <nom> <chemin> alternatives --list options communes : --verbose --test --help --usage --version --altdir <répertoire> --admindir <répertoire> Alternatives, version 1.7 - Copyright (C) 2001 Red Hat, Inc. Ce produit peut être librement distribué selon les termes de la licence publique GNU (GPL). utilisation : alternatives --install <lien> <nom> <chemin> <priorité> [--initscript <service>] [--family <family>] [--slave <lien> <nom> <chemin>]* alternatives --remove <nom> <chemin> alternatives --auto <nom> alternatives --config <nom> alternatives --display <nom> alternatives --set <nom> <chemin> alternatives --list options communes : --verbose --test --help --usage --version --altdir <répertoire> --admindir <répertoire> attention : %post(ksshaskpass-1:5.7.2-1.mga6.i586) scriptlet échoué, état de sortie 2 ERROR: 'script' failed for ksshaskpass-1:5.7.2-1.mga6.i586
I guess the update-alternatives syntax use doesn't match the new update-alternatives implementation we switched to. Here's what we have now: %post update-alternatives --install %{_libdir}/ssh/ssh-askpass ssh-askpass %{_kde_bindir}/%{name} 40 update-alternatives --install %{_bindir}/ssh-askpass bssh-askpass %{_kde_bindir}/%{name} 40 %postun [ $1 = 0 ] || exit 0 update-alternatives --remove ssh-askpass %{_kde_bindir}/%{name} update-alternatives --remove bssh-askpass %{_kde_bindir}/%{name} %triggerin -- ksshaskpass < 0.5 update-alternatives --remove ssh-askpass %{_libdir}/ssh/%{name} update-alternatives --remove bssh-askpass %{_libdir}/ssh/%{name} I also noticed that this package is missing Requires(post)/(postun) for this.
Assignee: bugsquad => mageia
Assignee: mageia => kde
It doesn't look like there's a problem now. I just installed ksshaskpass-5.8.6-1.mga6 and removed it, and alternatives was fine. I did, however, add the missing Requires(post) and Requires(postun) statements.
Status: NEW => RESOLVEDCC: (none) => ngompa13Resolution: (none) => FIXED