Exemplo n.º 1
0
    def check_installed(self, troveTuple):
        log.debug("============check installed =========")
        cli = ConaryPk()
        result = cli.query(troveTuple[0])
        if result:
            installed = INFO_INSTALLED
        else:
            installed = INFO_AVAILABLE

        return installed
Exemplo n.º 2
0
 def _pkg_is_installed(self, pkg):
     '''
     Return if the packages are installed
     '''
     conary_cli = ConaryPk()
     result = conary_cli.query(pkg)
         
     if result:
         return True
     else:
         return False