2016-03-02 10:05:01 +00:00
|
|
|
diff --git a/rubygems/lib/rubygems/installer.rb b/rubygems/lib/rubygems/installer.rb
|
2016-03-14 23:28:55 +00:00
|
|
|
index a88d393..8612901 100644
|
2016-03-02 10:05:01 +00:00
|
|
|
--- a/rubygems/lib/rubygems/installer.rb
|
|
|
|
+++ b/rubygems/lib/rubygems/installer.rb
|
2016-03-14 23:28:55 +00:00
|
|
|
@@ -766,7 +766,15 @@ TEXT
|
|
|
|
# Ensures that files can't be installed outside the gem directory.
|
2011-01-21 08:24:52 +00:00
|
|
|
|
2016-03-14 23:28:55 +00:00
|
|
|
def extract_files
|
|
|
|
- @package.extract_files gem_dir
|
|
|
|
+ ret = @package.extract_files gem_dir
|
|
|
|
+ if ENV['NIX_POST_EXTRACT_FILES_HOOK']
|
|
|
|
+ puts
|
|
|
|
+ puts "running NIX_POST_EXTRACT_FILES_HOOK #{ENV['NIX_POST_EXTRACT_FILES_HOOK']} #{gem_dir}"
|
|
|
|
+ system("#{ENV['NIX_POST_EXTRACT_FILES_HOOK']} #{gem_dir}")
|
|
|
|
+ puts "running NIX_POST_EXTRACT_FILES_HOOK done"
|
|
|
|
+ puts
|
2011-01-21 08:24:52 +00:00
|
|
|
+ end
|
2016-03-14 23:28:55 +00:00
|
|
|
+ ret
|
2011-01-21 08:24:52 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
##
|