Lines Matching full:builds
141 """No builds returned from a method to select specific builds"""
145 """No complete builds for a package
148 builds for a package.
228 This is the compare function used in sorted function to sort builds so that
737 """Get list of builds from Koji
739 Call kojihub.listBuilds, and return selected builds without changing
742 By default, only builds with COMPLETE state are queried and returns
745 :param int packageID: id of package to list builds from.
747 Koji. fedabipkgdiff only cares about builds with COMPLETE state. If
748 state is omitted, builds with COMPLETE state are queried from Koji by
752 builds. Selector will be called immediately after Koji returns queried
753 builds. When each call to selector, a build is passed to
756 :param str order_by: the attribute name by which to order the builds,
758 :param bool reverse: whether to order builds reversely.
759 :return: a list of builds, even if there is only one build.
774 builds = self.session.listBuilds(packageID=packageID, state=state)
776 builds = [build for build in builds if selector(build)]
778 # FIXME: is it possible to sort builds by using opts parameter of
782 builds = sorted(builds, cmp=cmp_nvr, reverse=reverse)
784 builds = sorted(builds,
788 builds = sorted(
789 builds, key=lambda b: b[order_by], reverse=reverse)
791 builds = builds[0:1]
793 return builds
854 builds = self.listBuilds(packageID=package['id'],
856 if not builds:
858 'No builds are selected from package {0}.'.format(
860 return builds[0]['build_id']
887 builds = self.listBuilds(packageID=package['id'],
891 if not builds:
895 # Now lets try to get builds which distro string are less
901 # foo-1.fc26, even though we want the builds of foo that
907 builds = self.listBuilds(packageID=package['id'],
912 if not builds:
914 'No complete builds of package {0}'.format(package_name))
916 return builds[0]