def overrideBuildFlavor(self, flavorStr):
        flavor = deps.parseFlavor(flavorStr)
        if flavor is None:
            raise RuntimeError, 'Invalid flavor %s' % flavorStr
        buildFlavor = self.cfg.buildFlavor.copy()
        if (deps.DEP_CLASS_IS in flavor.getDepClasses() and
            deps.DEP_CLASS_IS in buildFlavor.getDepClasses()):
            # instruction set deps are overridden completely -- remove
            # any buildFlavor instruction set info
            del buildFlavor.members[deps.DEP_CLASS_IS]
        buildFlavor.union(flavor,
                          mergeType = deps.DEP_MERGE_TYPE_OVERRIDE)
        self.cfg.buildFlavor = buildFlavor
dataset/ETHPy150Open sassoftware/conary/conary_test/rephelp.py/RepositoryHelper.overrideBuildFlavor/original