Sha256: 9df12f505c6ab17348d07a96204e2db5c3b1889ae13896ba90572e165ca6bbba

Contents?: true

Size: 746 Bytes

Versions: 44

Compression:

Stored size: 746 Bytes

Contents

require 'autoproj/cli/inspection_tool'
module Autoproj
    module CLI
        # Interface to patch/unpatch a package
        class Patcher < InspectionTool
            def run(packages, patch: true)
                initialize_and_load
                packages, _ = finalize_setup(packages, recursive: false, non_imported_packages: :ignore)
                packages.each do |package_name|
                    pkg = ws.manifest.package_definition_by_name(package_name)
                    if patch
                        pkg.autobuild.importer.patch(pkg.autobuild)
                    else
                        pkg.autobuild.importer.patch(pkg.autobuild, [])
                    end
                end
            end
        end
    end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
autoproj-2.7.0 lib/autoproj/cli/patcher.rb
autoproj-2.6.1 lib/autoproj/cli/patcher.rb
autoproj-2.6.0 lib/autoproj/cli/patcher.rb
autoproj-2.5.1 lib/autoproj/cli/patcher.rb
autoproj-2.5.0 lib/autoproj/cli/patcher.rb
autoproj-2.5.0.pre1 lib/autoproj/cli/patcher.rb
autoproj-2.4.0 lib/autoproj/cli/patcher.rb
autoproj-2.3.1 lib/autoproj/cli/patcher.rb
autoproj-2.3.0 lib/autoproj/cli/patcher.rb
autoproj-2.2.2 lib/autoproj/cli/patcher.rb
autoproj-2.2.1 lib/autoproj/cli/patcher.rb
autoproj-2.2.0 lib/autoproj/cli/patcher.rb
autoproj-2.1.2 lib/autoproj/cli/patcher.rb
autoproj-2.1.1 lib/autoproj/cli/patcher.rb
autoproj-2.1.0 lib/autoproj/cli/patcher.rb
autoproj-2.1.0.rc1 lib/autoproj/cli/patcher.rb
autoproj-2.0.3 lib/autoproj/cli/patcher.rb
autoproj-2.0.2 lib/autoproj/cli/patcher.rb
autoproj-2.0.1 lib/autoproj/cli/patcher.rb
autoproj-2.0.0 lib/autoproj/cli/patcher.rb