lib/autoproj/ops/snapshot.rb in autoproj-1.13.3.b2 vs lib/autoproj/ops/snapshot.rb in autoproj-1.13.3
- old
+ new
@@ -177,17 +177,22 @@
def current_import_state
main = import_state_log_package
# Try to resolve the log ref, and extract the version file from it
begin
+ #package importer might be nil during bootstrapping
+ if main.importer.nil?
+ return Array.new
+ end
yaml = main.importer.show(main, import_state_log_ref, import_state_log_file)
YAML.load(yaml) || Array.new
rescue Autobuild::PackageException
Array.new
end
end
def update_package_import_state(name, packages)
+ return if import_state_log_package.importer.nil? #We cannot create states for packages without a importer
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.