Method: Autoproj::AutobuildExtensions::ArchiveImporter#pick_from_autoproj_root
- Defined in:
- lib/autoproj/autobuild_extensions/archive_importer.rb
#pick_from_autoproj_root(package, installation_manifest) ⇒ Object
Reconfigures this importer to use an already existing checkout located in the given autoproj root
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/autoproj/autobuild_extensions/archive_importer.rb', line 10 def pick_from_autoproj_root(package, installation_manifest) # Get the cachefile w.r.t. the autoproj root cachefile = Pathname.new(self.cachefile) .relative_path_from(Pathname.new(ws.root_dir)).to_s # The cachefile in the other autoproj installation other_cachefile = File.join(installation_manifest.path, cachefile) if File.file?(other_cachefile) relocate("file://#{other_cachefile}") true end end |