Lines Matching refs:distro
153 """Invalid distro error"""
168 def is_distro_valid(distro):
169 """Adjust if a distro is valid
173 :param str distro: a string representing a distro value.
174 :return: True if distro is the one specific to Fedora, like fc24, el7.
177 return re.match(r'^(fc|el)\d{1,2}$', distro) is not None
181 """Get the part of a string that designates the Fedora distro version number
188 Fedora distro version number, or None if the parameter does not
196 distro = m.group(2)
197 return distro
870 def get_package_latest_build(self, package_name, distro):
871 """Get latest build from a package, for a particular distro.
879 :param str distro: which distro the latest build belongs to
885 selector = lambda item: item['release'].find(distro) > -1
892 # So we found no build which distro string exactly matches
893 # the 'distro' parameter.
895 # Now lets try to get builds which distro string are less
896 # than the value of the 'distro' parameter. This is for
902 # match the distro string fc27.
905 get_distro_from_string(build['release']) <= distro
958 def get_latest_built_rpms(self, package_name, distro, arches=None):
962 :param str distro: which distro the rpms belong to
968 latest_build = self.get_package_latest_build(package_name, distro)
1240 located in remote Koji server, that has specific distro specificed by
1252 raise InvalidDistroError('Invalid distro {0}'.format(from_distro))
1290 raise InvalidDistroError('Invalid distro {0}'.format(from_distro))
1293 raise InvalidDistroError('Invalid distro {0}'.format(to_distro))
1298 distro=global_config.from_distro)
1300 distro=global_config.to_distro)
1371 """Compare ABI between same package from a distro
1384 raise InvalidDistroError('Invalid distro {0}'.format(from_distro))
1389 distro=global_config.from_distro)