Skip to content

Commit

Permalink
Merge pull request jordansissel#213 from UnifiedPost/develop
Browse files Browse the repository at this point in the history
Fixed the path_prefix to prefix to allow overriding the gem path
  • Loading branch information
jordansissel committed Apr 26, 2012
2 parents ef0d0c8 + 41ebd34 commit c52e1ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fpm/package/gem.rb
Expand Up @@ -159,8 +159,8 @@ def load_package_info(gem_path)
end # def load_package_info

def install_to_staging(gem_path)
if attributes.include?(:path_prefix)
installdir = "#{staging_path}/#{attributes[:path_prefix]}"
if attributes.include?(:prefix) && ! attributes[:prefix].nil?
installdir = "#{staging_path}/#{attributes[:prefix]}"
else
installdir = File.join(staging_path, ::Gem::dir)
end
Expand Down

0 comments on commit c52e1ac

Please sign in to comment.