lib/autoproj/cli/manifest.rb in autoproj-2.3.1 vs lib/autoproj/cli/manifest.rb in autoproj-2.4.0
- old
+ new
@@ -13,20 +13,20 @@
Autoproj.message "current manifest is #{ws.manifest_file_path}"
elsif name.size == 1
name = name.first
if File.file?(full_path = File.expand_path(name))
if File.dirname(full_path) != ws.config_dir
- raise ArgumentError, "#{full_path} is not part of #{ws.config_dir}"
+ raise CLIInvalidArguments, "#{full_path} is not part of #{ws.config_dir}"
end
else
full_path = File.join(ws.config_dir, name)
end
if !File.file?(full_path)
alternative_full_path = File.join(ws.config_dir, "manifest.#{name}")
if !File.file?(alternative_full_path)
- raise ArgumentError, "neither #{full_path} nor #{alternative_full_path} exist"
+ raise CLIInvalidArguments, "neither #{full_path} nor #{alternative_full_path} exist"
end
full_path = alternative_full_path
end
begin
Autoproj::Manifest.new(ws).load(full_path)
@@ -36,11 +36,14 @@
end
ws.config.set 'manifest_name', File.basename(full_path)
ws.save_config
Autoproj.message "set manifest to #{full_path}"
else
- raise ArgumentError, "expected zero or one argument, but got #{name.size}"
+ raise CLIInvalidArguments, "expected zero or one argument, but got #{name.size}"
end
+ end
+
+ def notify_env_sh_updated
end
end
end
end