def _initErrorMessage(self):
        res = []
        packagesByErase = {}
        packagesByInstall = {}
        resolved = set(itertools.chain(*self.suggMap.values()))
        for jobSet in self.jobSets:
            for job in jobSet:
                newInfo = job[0], job[2][0], job[2][1]
                oldInfo = job[0], job[1][0], job[1][1]
                if job[1][0]:
                    packagesByErase[oldInfo] = newInfo
                if job[2][0]:
                    packagesByInstall[newInfo] = oldInfo

        res.append(
            'The following dependencies would not be met after this update:\n')
        for (reqBy, depSet, providedBy) in self.getFailures():
            providers = []
            for oldInfo in providedBy:
                newInfo = packagesByErase[oldInfo]
                if not newInfo[1]:
                    status = 'Would be erased'
                else:
                    status = 'Would be updated to %s' % self.formatVF(newInfo)
                providedInfo = '%s (%s)' % (self.formatNVF(oldInfo), status)
                providers.append(providedInfo)
            if packagesByInstall in reqBy:
                oldInfo = packagesByInstall[reqBy]
                if oldInfo[1]:
                    reqByInfo = '%s (Would be updated from %s)' % (
                                            self.formatNVF(reqBy),
                                                self.formatVF(oldInfo))
                elif reqBy in resolved:
                    reqByInfo = '%s (Would be added due to resolution)' \
                        % self.formatNVF(reqBy)
                else:
                    reqByInfo = '%s (Would be newly installed)' \
                        % self.formatNVF(reqBy)
            else:
                reqByInfo = '%s (Already installed)' % self.formatNVF(reqBy)

            res.append("  %s requires:\n"
                       "    %s\n  which is provided by:\n"
                       "    %s" % (reqByInfo,
                                   "\n    ".join(str(depSet).split("\n")),
                               ' or '.join(providers)))
        return '\n'.join(res)
dataset/ETHPy150Open sassoftware/conary/conary/conaryclient/update.py/EraseDepFailure._initErrorMessage/swapped operands of `in`