From 8be9b54ff4b15a0dbe9cdba3f76ed651f44fb8ac Mon Sep 17 00:00:00 2001 From: Michael Larson Date: Thu, 2 Jun 2011 11:58:10 -0700 Subject: suppress errors when reading pkg file. --- scripts/vyatta-show-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/vyatta-show-version b/scripts/vyatta-show-version index 8181f6f..03eb83b 100755 --- a/scripts/vyatta-show-version +++ b/scripts/vyatta-show-version @@ -176,7 +176,7 @@ if (!(-e $debsfile)) { print "\n"; $rHoH_base_debs = read_pkg_file(&echo_file($debsfile)); -$rHoH_now_debs = read_pkg_file(get_pkg_version(`dpkg -l`)); +$rHoH_now_debs = read_pkg_file(get_pkg_version(`dpkg -l 2> /dev/null`)); if ($#ARGV == 0) { if ($options{$ARGV[0]}) { -- cgit v1.2.3