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.14.0 lib/autoproj/cli/patcher.rb
autoproj-2.13.0 lib/autoproj/cli/patcher.rb
autoproj-2.12.1 lib/autoproj/cli/patcher.rb
autoproj-2.12.0 lib/autoproj/cli/patcher.rb
autoproj-2.11.0 lib/autoproj/cli/patcher.rb
autoproj-2.10.2 lib/autoproj/cli/patcher.rb
autoproj-2.10.1 lib/autoproj/cli/patcher.rb
autoproj-2.10.0 lib/autoproj/cli/patcher.rb
autoproj-2.9.0 lib/autoproj/cli/patcher.rb
autoproj-2.8.8 lib/autoproj/cli/patcher.rb
autoproj-2.8.7 lib/autoproj/cli/patcher.rb
autoproj-2.8.6 lib/autoproj/cli/patcher.rb
autoproj-2.8.5 lib/autoproj/cli/patcher.rb
autoproj-2.8.5.b1 lib/autoproj/cli/patcher.rb
autoproj-2.8.4 lib/autoproj/cli/patcher.rb
autoproj-2.8.3 lib/autoproj/cli/patcher.rb
autoproj-2.8.2 lib/autoproj/cli/patcher.rb
autoproj-2.8.1 lib/autoproj/cli/patcher.rb
autoproj-2.8.0 lib/autoproj/cli/patcher.rb
autoproj-2.7.1 lib/autoproj/cli/patcher.rb