diff options
author | Michael Larson <mike@vyatta.com> | 2011-06-02 11:58:10 -0700 |
---|---|---|
committer | Michael Larson <mike@vyatta.com> | 2011-06-02 11:58:10 -0700 |
commit | 8be9b54ff4b15a0dbe9cdba3f76ed651f44fb8ac (patch) | |
tree | 51c02a0227e9267bb3978718cbc4ab8fa4353733 | |
parent | 322952248b53106f9fc39f19244f2fee93a89701 (diff) | |
download | vyatta-op-8be9b54ff4b15a0dbe9cdba3f76ed651f44fb8ac.tar.gz vyatta-op-8be9b54ff4b15a0dbe9cdba3f76ed651f44fb8ac.zip |
suppress errors when reading pkg file.
-rwxr-xr-x | scripts/vyatta-show-version | 2 |
1 files changed, 1 insertions, 1 deletions
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]}) { |