def hasOptionalTrove(self, troveTup):
        for ts in self.troveSetList:
            if isinstance(ts, troveset.TroveTupleSet):
                if troveTup in ts._getOptionalSet():
                    return True
            elif isinstance(ts, CMLSearchPath):
                if ts.hasOptionalTrove(troveTup):
                    return True

        return False
dataset/ETHPy150Open sassoftware/conary/conary/conaryclient/modelupdate.py/CMLSearchPath.hasOptionalTrove/original