[DRE-commits] [SCM] rubygems.git branch, master, updated. upstream/1.7.2-34-ge187262
Lucas Nussbaum
lucas at lucas-nussbaum.net
Fri Oct 7 12:49:18 UTC 2011
The following commit has been merged in the master branch:
commit 81b0fa67bb646f1bde52c872e0df61c9b7b2e234
Author: Lucas Nussbaum <lucas at lucas-nussbaum.net>
Date: Fri Oct 7 14:04:49 2011 +0200
01_default_gem_path.diff: refresh.
diff --git a/debian/patches/01_default_gem_path.diff b/debian/patches/01_default_gem_path.diff
index cf64610..cc2c606 100644
--- a/debian/patches/01_default_gem_path.diff
+++ b/debian/patches/01_default_gem_path.diff
@@ -7,7 +7,7 @@
@DPATCH@
--- a/lib/rubygems/defaults.rb
+++ b/lib/rubygems/defaults.rb
-@@ -15,18 +15,15 @@ module Gem
+@@ -17,30 +17,15 @@ module Gem
##
# Default home directory path to be used if an alternate value is not
# specified in the environment
@@ -19,21 +19,33 @@
+ #
def self.default_dir
-- if defined? RUBY_FRAMEWORK_VERSION then
-- File.join File.dirname(ConfigMap[:sitedir]), 'Gems',
-- ConfigMap[:ruby_version]
-- elsif ConfigMap[:rubylibprefix] then
-- File.join(ConfigMap[:rubylibprefix], 'gems',
-- ConfigMap[:ruby_version])
-- else
-- File.join(ConfigMap[:libdir], ruby_engine, 'gems',
-- ConfigMap[:ruby_version])
-- end
-+ File.join('/', 'var', 'lib', 'gems', ConfigMap[:ruby_version])
+- path = if defined? RUBY_FRAMEWORK_VERSION then
+- [
+- File.dirname(ConfigMap[:sitedir]),
+- 'Gems',
+- ConfigMap[:ruby_version]
+- ]
+- elsif ConfigMap[:rubylibprefix] then
+- [
+- ConfigMap[:rubylibprefix],
+- 'gems',
+- ConfigMap[:ruby_version]
+- ]
+- else
+- [
+- ConfigMap[:libdir],
+- ruby_engine,
+- 'gems',
+- ConfigMap[:ruby_version]
+- ]
+- end
+-
+- @default_dir ||= File.join(*path)
++ @default_dir ||= File.join('/', 'var', 'lib', 'gems', ConfigMap[:ruby_version])
end
##
-@@ -63,13 +60,11 @@ module Gem
+@@ -77,13 +62,11 @@ module Gem
##
# The default directory for binaries
--
rubygems.git
More information about the Pkg-ruby-extras-commits
mailing list