summaryrefslogtreecommitdiff
path: root/debian/openssh-client.preinst
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2007-10-18 13:42:08 +0000
committerColin Watson <cjwatson@debian.org>2007-10-18 13:42:08 +0000
commit58e93c21b1c1b06613a8f06fe794f57f439b4eb2 (patch)
tree62d6742307f038af6a6543ba00b0a050ed90335b /debian/openssh-client.preinst
parent948c65611007831c37e027ce0b68c99e0e3a72b0 (diff)
* Discard error output from dpkg-query in preinsts, in case the ssh
metapackage is not installed.
Diffstat (limited to 'debian/openssh-client.preinst')
-rw-r--r--debian/openssh-client.preinst2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/openssh-client.preinst b/debian/openssh-client.preinst
index fd55a53bd..0b29c051d 100644
--- a/debian/openssh-client.preinst
+++ b/debian/openssh-client.preinst
@@ -37,7 +37,7 @@ prepare_transfer_conffile () {
37case $action in 37case $action in
38 install|upgrade) 38 install|upgrade)
39 if dpkg --compare-versions "$version" lt 0; then 39 if dpkg --compare-versions "$version" lt 0; then
40 CONFFILES="$(dpkg-query -W -f '${Conffiles}\n' ssh | sed 's/^ *//')" 40 CONFFILES="$(dpkg-query -W -f '${Conffiles}\n' ssh 2>/dev/null | sed 's/^ *//')"
41 prepare_transfer_conffile /etc/ssh/moduli "$ETC_SSH_MODULI" 0644 41 prepare_transfer_conffile /etc/ssh/moduli "$ETC_SSH_MODULI" 0644
42 prepare_transfer_conffile /etc/ssh/ssh_config "$ETC_SSH_SSH_CONFIG" 0644 42 prepare_transfer_conffile /etc/ssh/ssh_config "$ETC_SSH_SSH_CONFIG" 0644
43 fi 43 fi