lib/autoproj/ops/snapshot.rb in autoproj-2.0.0.rc37 vs lib/autoproj/ops/snapshot.rb in autoproj-2.0.0.rc38
- old
+ new
@@ -132,11 +132,11 @@
options = Kernel.validate_options options,
only_local: true
result = Array.new
packages.each do |package_name|
- package = manifest.packages[package_name]
+ package = manifest.find_package_definition(package_name)
if !package
raise ArgumentError, "#{package_name} is not a known package"
end
importer = package.autobuild.importer
if !importer
@@ -215,11 +215,12 @@
def update_package_import_state(name, packages)
current_versions = current_import_state
if current_versions.empty?
# Do a full snapshot this time only
Autoproj.message " building initial autoproj import log, this may take a while"
- packages = manifest.all_selected_packages.
- find_all { |pkg| File.directory?(manifest.find_package(pkg).autobuild.srcdir) }
+ packages = manifest.all_selected_source_packages.
+ find_all { |pkg| File.directory?(pkg.autobuild.srcdir) }.
+ map(&:name)
end
versions = snapshot_package_sets
versions += snapshot_packages(packages)
versions = Snapshot.merge_packets(versions, current_versions)
save_import_state(name, versions)