def _getLabelPath(self, troveSpec, queryOptions, affinityTroves,
                      versionStr):
        if affinityTroves and (not versionStr or (':' not in versionStr
                                                  and '@' not in versionStr)):
            return [ x[1].trailingLabel() for x in affinityTroves ]
        if queryOptions.labelPath:
            return queryOptions.labelPath
        if not queryOptions.allowNoLabel:
            return []
        return set([ x.trailingLabel() \
                    for x in queryOptions.troveSource.getTroveVersionList(
                                                troveSpec[0],
                                    troveTypes=queryOptions.troveTypes)])
Returns the labelPath to use when searching for this troveSpec,
dataset/ETHPy150Open sassoftware/conary/conary/repository/findtrove.py/TroveFinder._getLabelPath