def overrideFlavors(self, queryOptions, flavor, defaultFlavorPath=None):
        if defaultFlavorPath is None:
            defaultFlavorPath = queryOptions.defaultFlavorPath
        if flavor is None:
            return defaultFlavorPath
        if not defaultFlavorPath:
            return [flavor]
        flavors = []
        for defaultFlavor in queryOptions.defaultFlavorPath:
            flavors.append(deps.overrideFlavor(defaultFlavor, flavor,
                                        mergeType = deps.DEP_MERGE_TYPE_PREFS))
        return flavors
override the flavors in the defaultFlavorPath with flavor,
dataset/ETHPy150Open sassoftware/conary/conary/repository/findtrove.py/QuerySetFactory.overrideFlavors