Exemple #1
0
 def _should_run(self):
     if not hutils.package_installed(self._package_name):
         return False
     return True
Exemple #2
0
 def _should_run(self):
     if not hutils.system_OS(OSDistro.CentOS):
         return False
     if not hutils.package_installed(self._package_name):
         return False
     return True
def test_package_installed(test_database):
    packages = heuristic_utils.package_installed("bash")

    assert packages[0].name == "bash"
Exemple #4
0
 def __init__(self):
     self.__init_logger()
     self.__set_session()
     r = hutils.package_installed(self._package_name)
     self._rpm_info = None if len(r) == 0 else r[0]