diff --git a/avocado/utils/software_manager.py b/avocado/utils/software_manager.py index 98cb795bf92f8fa7b9e50a8752192344a220f6cf..a593e4529662d516d8af2a7103218592cbf852a4 100644 --- a/avocado/utils/software_manager.py +++ b/avocado/utils/software_manager.py @@ -301,10 +301,9 @@ class DpkgBackend(BaseBackend): def check_installed(self, name): if os.path.isfile(name): - n_cmd = (self.lowlevel_base_cmd + ' -f ' + name + - ' Package 2>/dev/null') + n_cmd = self.lowlevel_base_cmd + ' -f ' + name + ' Package' name = process.system_output(n_cmd) - i_cmd = self.lowlevel_base_cmd + " -s " + name + ' 2>/dev/null' + i_cmd = self.lowlevel_base_cmd + " -s " + name # Checking if package is installed package_status = process.system_output(i_cmd, ignore_status=True) dpkg_installed = (self.INSTALLED_OUTPUT in package_status)