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
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