lib/autoproj/cli/build.rb in autoproj-2.14.0 vs lib/autoproj/cli/build.rb in autoproj-2.15.0

- old
+ new

@@ -1,15 +1,16 @@ -require 'autoproj/cli/update' -require 'autoproj/ops/build' +require "autoproj/cli/update" +require "autoproj/ops/build" module Autoproj module CLI class Build < Update def validate_options(selected_packages, options) selected_packages, options = super(selected_packages, options.merge( - checkout_only: true, aup: options[:amake])) + checkout_only: true, aup: options[:amake] + )) options[:deps] = false if options[:no_deps_shortcut] if options[:deps].nil? options[:deps] = !(options[:rebuild] || options[:force]) @@ -52,24 +53,26 @@ ops = Ops::Build.new(ws.manifest, report_path: ws.build_report_path) if build_options[:rebuild] || build_options[:force] packages_to_rebuild = if options[:deps] || command_line_selection.empty? source_packages - else command_line_selection + else + command_line_selection end if command_line_selection.empty? # If we don't have an explicit package selection, we want to # make sure that the user really wants this - mode_name = if build_options[:rebuild] then 'rebuild' - else 'force-build' + mode_name = if build_options[:rebuild] then "rebuild" + else + "force-build" end if build_options[:confirm] != false opt = BuildOption.new( "", "boolean", { doc: "this is going to trigger a #{mode_name} "\ - "of all packages. Is that really what you want ?" + "of all packages. Is that really what you want ?" }, nil ) raise Interrupt unless opt.ask(false) end