lib/autoproj/ops/snapshot.rb in autoproj-2.9.0 vs lib/autoproj/ops/snapshot.rb in autoproj-2.10.0

- old
+ new

@@ -115,11 +115,11 @@ else raise end end - def snapshot_packages(packages, target_dir = nil, only_local: true) + def snapshot_packages(packages, target_dir = nil, only_local: true, fingerprint: false) result = Array.new packages.each do |package_name| package = manifest.find_package_definition(package_name) if !package raise ArgumentError, "#{package_name} is not a known package" @@ -137,9 +137,13 @@ begin importer.snapshot(package.autobuild, target_dir, only_local: only_local) rescue Exception => e error_or_warn(package, e) next end + + if fingerprint + vcs_info['fingerprint'] = package.autobuild.fingerprint + end if vcs_info result << Hash[package_name, vcs_info] else error_or_warn(package, "cannot snapshot #{package_name}: importer snapshot failed")