From 58e93c21b1c1b06613a8f06fe794f57f439b4eb2 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Thu, 18 Oct 2007 13:42:08 +0000 Subject: * Discard error output from dpkg-query in preinsts, in case the ssh metapackage is not installed. --- debian/openssh-server.preinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debian/openssh-server.preinst') diff --git a/debian/openssh-server.preinst b/debian/openssh-server.preinst index 866cf8b1a..87871bdaa 100644 --- a/debian/openssh-server.preinst +++ b/debian/openssh-server.preinst @@ -112,7 +112,7 @@ EOF fi if dpkg --compare-versions "$version" lt 0; then - CONFFILES="$(dpkg-query -W -f '${Conffiles}\n' ssh | sed 's/^ *//')" + CONFFILES="$(dpkg-query -W -f '${Conffiles}\n' ssh 2>/dev/null | sed 's/^ *//')" prepare_transfer_conffile /etc/default/ssh "$ETC_DEFAULT_SSH" 0644 prepare_transfer_conffile /etc/init.d/ssh "$ETC_INIT_D_SSH" 0755 prepare_transfer_conffile /etc/pam.d/ssh "$ETC_PAM_D_SSH" 0644 -- cgit v1.2.3