Lines Matching refs:version
86 dupe = find_duplicate([v.version for v in database.versions])
90 for version in database.versions:
91 dupe = find_duplicate([r.module for r in version.requirements])
93 return 'Found duplicate module requirement for %s in single version %s' % (dupe, version)
96 for version in sorted(database.versions, key=lambda v: v.version):
97 for requirement in version.requirements:
100 if prev.version > requirement.version.version:
101 return 'Found module requirement moving backwards: %s in %s' % (requirement, version)
102 prev_requirements[requirement.module] = requirement.version
104 for version in database.versions:
105 required_modules = [r.module for r in version.requirements]
107 return 'SDK %d has a requirement on the UNKNOWN module' % version.version
109 return 'SDK %d has a requirement on an undefined module value' % version.version
112 if version.version >= 9 and (has_adservices ^ has_extservices):
139 for prev_version in sorted(database.versions, key=lambda v: v.version):
141 new_requirements[prev_requirement.module] = prev_requirement.version
145 new_requirements[module] = SdkVersion(version=new_version)
147 to_proto = lambda m : ExtensionVersion.ModuleRequirement(module=m, version=new_requirements[m])
149 extension_version = ExtensionVersion(version=new_version, requirements=module_requirements)