def _cvtVersion(self, verStr, source=False):
        if isinstance(verStr, versions.Version):
            return verStr
        verStr = str(verStr)
        if verStr[0] == ':':
            buildLabel = self.cfg.buildLabel
            if '/' not in verStr:
                verStr += '/1'
            verStr = '/%s@%s%s' % (buildLabel.getHost(),
                                   buildLabel.getNamespace(),
                                   verStr)
        elif verStr[0] == '@':
            buildLabel = self.cfg.buildLabel
            if '/' not in verStr:
                verStr += '/1'
            verStr = '/%s%s' % (buildLabel.getHost(), verStr)
        elif verStr[0] != '/':
            if '@' in verStr:
                if '/' not in verStr:
                    verStr += '/1'
                verStr = '/%s' % verStr
            else:
                verStr = (self.cfg.buildLabel.asString(), verStr) % '/%s/%s'
        if '-' not in verStr:
            if source:
                verStr += '-1'
            else:
                verStr += '-1-1'

        try:
            v = versions.VersionFromString(verStr).copy()
            v.resetTimeStamps()
            return v
        except errors.ParseError:
            pass
        try:
            newVerStr = verStr
            if '-' not in verStr.rsplit('/')[-1]:
                if source:
                    newVerStr += '-1'
                else:
                    newVerStr += '-1-1'
            v = versions.VersionFromString(newVerStr).copy()
            v.resetTimeStamps()
            return v
        except errors.ParseError:
            pass
        v = versions.ThawVersion(verStr)
        return v
dataset/ETHPy150Open sassoftware/conary/conary_test/rephelp.py/RepositoryHelper._cvtVersion/swapped operands of `%`