[DRE-commits] [gem2deb] 05/06: Ignore non-installed interpreters
Antonio Terceiro
terceiro at moszumanska.debian.org
Mon Dec 2 13:03:21 UTC 2013
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository gem2deb.
commit ae60a1c6708dc6b5a1500a2be5f32af9028d2d83
Author: Antonio Terceiro <terceiro at debian.org>
Date: Mon Dec 2 09:42:56 2013 -0300
Ignore non-installed interpreters
This will ease backports of gem2deb without also having to backport the
interpreters supported in unstable.
Git-Dch: Full
Closes: #730694
---
lib/gem2deb.rb | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lib/gem2deb.rb b/lib/gem2deb.rb
index 50b5de3..a9e7e56 100644
--- a/lib/gem2deb.rb
+++ b/lib/gem2deb.rb
@@ -23,11 +23,16 @@ module Gem2Deb
end
SUPPORTED_RUBY_VERSIONS = {
+
#name Ruby binary
#--------------- -------------------
'ruby1.9.1' => '/usr/bin/ruby1.9.1',
'ruby2.0' => '/usr/bin/ruby2.0',
- }
+
+ }.select do |version, binary|
+ # To help backporters without having to also backport the interpreters.
+ File.exists?(binary)
+ end
RUBY_CONFIG_VERSION = {
'ruby1.9.1' => '1.9.1',
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gem2deb.git
More information about the Pkg-ruby-extras-commits
mailing list