def fullUpdateItemList(self):
        # ignore updates that just switch version, not flavor or
        # branch
        items = self.getUpdateItemList()

        installed = self.db.findByNames(x[0] for x in items)

        installedDict = {}
        for (name, version, release) in installed:
            branchDict = installedDict.setdefault(name, {})
            l = branchDict.setdefault(version.branch(), [])
            l.append((version, release))

        updateItems = []

        for name, version, flavor in items:
            branch = version.branch()
            verInfo = installedDict[name][branch]

            if len(installedDict[name]) == 1 and len(verInfo) == 1:
                updateItems.append((name, None, None))
                continue
            elif len(verInfo) == 1:
                updateItems.append((name, branch, None))
                continue

            score = None
            for instFlavor in self.cfg.flavor:
                newScore = instFlavor.score(flavor)
                if newScore is False:
                    continue
                if score is None or score > newScore:
                    score = newScore
                    finalFlavor = instFlavor

            if score is not None:
                # otherwise, we'll search all flavors on update using affinity.
                flavor = deps.overrideFlavor(finalFlavor, flavor)

            if len(installedDict[name]) == 1:
                updateItems.append((name, None, flavor))
            else:
                updateItems.append((name, branch, flavor))

        return updateItems
dataset/ETHPy150Open sassoftware/conary/conary/conaryclient/update.py/ClientUpdate.fullUpdateItemList/swapped operands of `>`