def _filterResultsByFlavor(self, versionFlavorDict,
                               flavorQuery, filterOptions,
                               scoreCache):
        if not filterOptions.splitByBranch:
            return self._filterByFlavorQuery(versionFlavorDict,
                                             flavorQuery,
                                             filterOptions,
                                             scoreCache)

        results = {}
        allAltFlavors = []
        for versionFlavorDict in self._splitResultByBranch(versionFlavorDict):
            filteredDict, altFlavors = self._filterByFlavorQuery(
                                                        versionFlavorDict,
                                                        flavorQuery,
                                                        filterOptions,
                                                        scoreCache)
            allAltFlavors.extend(altFlavors)
            if not filteredDict:
                continue
            for version, flavorList in filteredDict.iteritems():
                if version not in results:
                    results[version] = []
                results[version].extend(flavorList)
        if results:
            allAltFlavors = []
        return results, allAltFlavors
Updated results with a subset of the contents of versionFlavorDict
dataset/ETHPy150Open sassoftware/conary/conary/repository/trovesource.py/SearchableTroveSource._filterResultsByFlavor