diff options
author | Colin Watson <cjwatson@debian.org> | 2005-09-02 14:58:08 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2005-09-02 14:58:08 +0000 |
commit | 2f4556971b3547fa4f8a78bd5d53ac222e22d65b (patch) | |
tree | f73d5624c09ceb65686df062400ef8bb4b68de07 /debian/ssh-askpass-gnome.postinst | |
parent | 8e5cf830fdb7e1b39c9666fd5df379c2d127669d (diff) |
* Work around the ssh-askpass alternative somehow ending up in manual mode
pointing to the obsolete /usr/lib/ssh/gnome-ssh-askpass.
Diffstat (limited to 'debian/ssh-askpass-gnome.postinst')
-rw-r--r-- | debian/ssh-askpass-gnome.postinst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/ssh-askpass-gnome.postinst b/debian/ssh-askpass-gnome.postinst index 15290b711..b6c56d4e7 100644 --- a/debian/ssh-askpass-gnome.postinst +++ b/debian/ssh-askpass-gnome.postinst | |||
@@ -29,6 +29,13 @@ case "$1" in | |||
29 | update-alternatives --quiet --remove ssh-askpass \ | 29 | update-alternatives --quiet --remove ssh-askpass \ |
30 | /usr/lib/ssh/gnome-ssh-askpass | 30 | /usr/lib/ssh/gnome-ssh-askpass |
31 | fi | 31 | fi |
32 | if dpkg --compare-versions "$2" lt-nl 1:4.1p1-7 && \ | ||
33 | [ -h /etc/alternatives/ssh-askpass ] && \ | ||
34 | [ "$(readlink /etc/alternatives/ssh-askpass)" = /usr/lib/ssh/gnome-ssh-askpass ]; then | ||
35 | # Work around the ssh-askpass alternative somehow ending up in | ||
36 | # manual mode. | ||
37 | update-alternatives --auto ssh-askpass | ||
38 | fi | ||
32 | update-alternatives --quiet \ | 39 | update-alternatives --quiet \ |
33 | --install /usr/bin/ssh-askpass ssh-askpass \ | 40 | --install /usr/bin/ssh-askpass ssh-askpass \ |
34 | /usr/lib/openssh/gnome-ssh-askpass 30 \ | 41 | /usr/lib/openssh/gnome-ssh-askpass 30 \ |