Package: vagrant
Version: 1.8.5+dfsg-2

I recently packaged a few vagrant plugins, which was really easy thanks
to the work in the vagrant package.  So thanks for that.  There is one
thing missing from the vagrant plugin helper: installing the error
messages in the locales/ dir.  vagrant-libvirt handles this with a
custom patch, but since having error messages in locales/en.yml seems to
be a common pattern, the vagrant plugin helper should automatically

For an example of this problem, install 'vagrant-mutate' then uninstall
'qemu-utils'.  Running the mutate plugin should give an error message
about missing qemu-img, but instead it gives a ruby stacktrace about
missing the locales/en.yml file:

$ vagrant mutate jessie64 libvirt
/usr/lib/ruby/vendor_ruby/i18n/backend/base.rb:184:in `rescue in
load_yml': can not load translations from /usr/lib/ruby/locales/en.yml:
#<Errno::ENOENT: No such file or directory @ rb_sysopen -
/usr/lib/ruby/locales/en.yml> (I18n::InvalidLocaleData)
 from /usr/lib/ruby/vendor_ruby/i18n/backend/base.rb:181:in `load_yml'
 from /usr/lib/ruby/vendor_ruby/i18n/backend/base.rb:165:in `load_file'
 from /usr/lib/ruby/vendor_ruby/i18n/backend/base.rb:15:in `block in
load_translations'
 from /usr/lib/ruby/vendor_ruby/i18n/backend/base.rb:15:in `each'
 from /usr/lib/ruby/vendor_ruby/i18n/backend/base.rb:15:in
`load_translations'
 from /usr/lib/ruby/vendor_ruby/i18n/backend/simple.rb:57:in
`init_translations'
 from /usr/lib/ruby/vendor_ruby/i18n/backend/simple.rb:40:in
`available_locales'
 from /usr/lib/ruby/vendor_ruby/i18n/config.rb:43:in `available_locales'
 from /usr/lib/ruby/vendor_ruby/i18n/config.rb:49:in `available_locales_set'
 from /usr/lib/ruby/vendor_ruby/i18n.rb:278:in `locale_available?'
 from /usr/lib/ruby/vendor_ruby/i18n.rb:284:in `enforce_available_locales!'
 from /usr/lib/ruby/vendor_ruby/i18n.rb:151:in `translate'
 from /usr/lib/ruby/vendor_ruby/vagrant/errors.rb:103:in `translate_error'
 from /usr/lib/ruby/vendor_ruby/vagrant/errors.rb:72:in `initialize'
 from /usr/lib/ruby/vendor_ruby/vagrant-mutate/qemu.rb:8:in `exception'
 from /usr/lib/ruby/vendor_ruby/vagrant-mutate/qemu.rb:8:in `fail'
 from /usr/lib/ruby/vendor_ruby/vagrant-mutate/qemu.rb:8:in
`verify_qemu_installed'
 from /usr/lib/ruby/vendor_ruby/vagrant-mutate/mutate.rb:40:in `execute'
 from /usr/lib/ruby/vendor_ruby/vagrant/cli.rb:42:in `execute'
 from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:268:in `cli'
 from /usr/bin/vagrant:173:in `<main>'

Reply via email to