def build_debs(distro, stack_name, os_platform, arch, staging_dir, force, noupload, interactive, repo_fqdn): distro_name = distro.release_name if stack_name not in distro.released_stacks: raise BuildFailure("stack [%s] not found in distro [%s]." % (stack_name, distro_name)) try: stack_version = distro.released_stacks[stack_name].version except KeyError as ex: debug("Stack [%s] is not in in the distro: %s" % (stack_name, ex)) broken = set() skipped = set() debug("Attempting to build: %s" % (str(stack_name))) #si = load_info(stack_name, stack_version) missing_depends = list_missing.compute_missing_depends(stack_name, distro, os_platform, arch, repo=repo_url(repo_fqdn)) if not missing_depends: # Create the environment where we build the debs, if necessary create_chroot(distro, distro_name, os_platform, arch, repo_fqdn) debug("Initiating build of: %s" % (str(stack_name))) try: do_deb_build(distro_name, stack_name, stack_version, os_platform, arch, staging_dir, noupload, interactive, repo_fqdn) except Exception as ex: debug("Exception was %s" % ex) debug("Build of [%s] failed, adding to broken list" % (str(stack_name))) broken.add(stack_name) else: debug("Skipping %s (%s) since dependencies not built: %s" % (stack_name, stack_version, missing_depends)) skipped.add(stack_name) if broken.union(skipped): raise StackBuildFailure("debbuild did not complete successfully. A list of broken and skipped stacks are below. Broken means the stack itself did not build. Skipped stacks means that the stack's dependencies could not be built.\n\nBroken stacks: %s. Skipped stacks: %s" % (broken, skipped))
def build_debs(distro, stack_name, os_platform, arch, staging_dir, force, noupload, interactive, repo_fqdn): distro_name = distro.release_name if stack_name not in distro.released_stacks: raise BuildFailure("stack [%s] not found in distro [%s]." % (stack_name, distro_name)) try: stack_version = distro.released_stacks[stack_name].version except KeyError as ex: debug("Stack [%s] is not in in the distro: %s" % (stack_name, ex)) broken = set() skipped = set() debug("Attempting to build: %s" % (str(stack_name))) #si = load_info(stack_name, stack_version) missing_depends = list_missing.compute_missing_depends( stack_name, distro, os_platform, arch, repo=repo_url(repo_fqdn)) if not missing_depends: # Create the environment where we build the debs, if necessary create_chroot(distro, distro_name, os_platform, arch, repo_fqdn) debug("Initiating build of: %s" % (str(stack_name))) try: do_deb_build(distro_name, stack_name, stack_version, os_platform, arch, staging_dir, noupload, interactive, repo_fqdn) except Exception as ex: debug("Exception was %s" % ex) debug("Build of [%s] failed, adding to broken list" % (str(stack_name))) broken.add(stack_name) else: debug("Skipping %s (%s) since dependencies not built: %s" % (stack_name, stack_version, missing_depends)) skipped.add(stack_name) if broken.union(skipped): raise StackBuildFailure( "debbuild did not complete successfully. A list of broken and skipped stacks are below. Broken means the stack itself did not build. Skipped stacks means that the stack's dependencies could not be built.\n\nBroken stacks: %s. Skipped stacks: %s" % (broken, skipped))
raise BuildFailure("stack [%s] not found in distro [%s]."%(stack_name, distro_name)) try: stack_version = distro.released_stacks[stack_name].version except KeyError, ex: debug("Stack [%s] is not in in the distro: %s" % (stack_name, ex) ) broken = set() skipped = set() debug("Attempting to build: %s"%(str(stack_name))) #si = load_info(stack_name, stack_version) missing_depends = list_missing.compute_missing_depends(stack_name, distro, os_platform, arch, repo = repo_url(repo_fqdn)) if not missing_depends: # Create the environment where we build the debs, if necessary create_chroot(distro, distro_name, os_platform, arch, repo_fqdn) debug("Initiating build of: %s"%(str(stack_name))) try: do_deb_build(distro_name, stack_name, stack_version, os_platform, arch, staging_dir, noupload, interactive, repo_fqdn) except Exception, ex: debug("Exception was %s" % ex) debug("Build of [%s] failed, adding to broken list"%(str(stack_name))) broken.add(stack_name) else: debug("Skipping %s (%s) since dependencies not built: %s"%(stack_name, stack_version, missing_depends)) skipped.add(stack_name) if broken.union(skipped):
if stack_name not in distro.released_stacks: raise BuildFailure("stack [%s] not found in distro [%s]." % (stack_name, distro_name)) try: stack_version = distro.released_stacks[stack_name].version except KeyError, ex: debug("Stack [%s] is not in in the distro: %s" % (stack_name, ex)) broken = set() skipped = set() debug("Attempting to build: %s" % (str(stack_name))) #si = load_info(stack_name, stack_version) missing_depends = list_missing.compute_missing_depends( stack_name, distro, os_platform, arch, repo=repo_url(repo_fqdn)) if not missing_depends: # Create the environment where we build the debs, if necessary create_chroot(distro, distro_name, os_platform, arch, repo_fqdn) debug("Initiating build of: %s" % (str(stack_name))) try: do_deb_build(distro_name, stack_name, stack_version, os_platform, arch, staging_dir, noupload, interactive, repo_fqdn) except Exception, ex: debug("Exception was %s" % ex) debug("Build of [%s] failed, adding to broken list" % (str(stack_name))) broken.add(stack_name) else: debug("Skipping %s (%s) since dependencies not built: %s" % (stack_name, stack_version, missing_depends))