[DRE-commits] [vagrant-cachier] 03/06: install/load locales to/from /usr/share

Antonio Terceiro terceiro at moszumanska.debian.org
Mon Apr 11 01:35:33 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository vagrant-cachier.

commit df7df4219718a5938af0339d83ac9b67d3fed199
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sun Apr 10 22:12:25 2016 -0300

    install/load locales to/from /usr/share
---
 debian/changelog                                    |  2 ++
 debian/install                                      |  1 +
 .../patches/0001-Load-locales-from-usr-share.patch  | 21 +++++++++++++++++++++
 debian/patches/series                               |  1 +
 4 files changed, 25 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a0928e1..f4b384e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ vagrant-cachier (1.2.1-2) UNRELEASED; urgency=medium
 
   * Team upload.
   * debian/tests/*: add autopkgtest test suite
+  * debian/install: install locales to /usr/share
+  * 0001-Load-locales-from-usr-share.patch: load locales from /usr/share
 
  -- Antonio Terceiro <terceiro at debian.org>  Sun, 10 Apr 2016 22:07:35 -0300
 
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..ba0d862
--- /dev/null
+++ b/debian/install
@@ -0,0 +1 @@
+locales   usr/share/vagrant-plugins/vagrant-cachier/
diff --git a/debian/patches/0001-Load-locales-from-usr-share.patch b/debian/patches/0001-Load-locales-from-usr-share.patch
new file mode 100644
index 0000000..bd645b0
--- /dev/null
+++ b/debian/patches/0001-Load-locales-from-usr-share.patch
@@ -0,0 +1,21 @@
+From: Antonio Terceiro <terceiro at debian.org>
+Date: Sun, 10 Apr 2016 22:11:35 -0300
+Subject: Load locales from /usr/share
+
+---
+ lib/vagrant-cachier/plugin.rb | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/vagrant-cachier/plugin.rb b/lib/vagrant-cachier/plugin.rb
+index bb337b1..2e3352c 100644
+--- a/lib/vagrant-cachier/plugin.rb
++++ b/lib/vagrant-cachier/plugin.rb
+@@ -3,7 +3,7 @@ unless Gem::Requirement.new('>= 1.4.0').satisfied_by?(Gem::Version.new(Vagrant::
+ end
+ 
+ # Add our custom translations to the load path
+-I18n.load_path << File.expand_path("../../../locales/en.yml", __FILE__)
++I18n.load_path << File.expand_path("/usr/share/vagrant-plugins/vagrant-cachier/locales/en.yml", __FILE__)
+ 
+ module VagrantPlugins
+   module Cachier
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4038886
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Load-locales-from-usr-share.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/vagrant-cachier.git



More information about the Pkg-ruby-extras-commits mailing list