Skip to content

Commit

Permalink
Merge pull request jordansissel#182 from MITx/master
Browse files Browse the repository at this point in the history
Fixed bugs around binpath not being created and with links inside the package
  • Loading branch information
jordansissel committed Mar 22, 2012
2 parents e50dbeb + 6aa9e7e commit ef58f05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/fpm/package/deb.rb
Expand Up @@ -310,7 +310,7 @@ def write_control
@logger.info("No deb_installed_size set, calculating now.")
total = 0
Find.find(staging_path) do |path|
stat = File.stat(path)
stat = File.lstat(path)
next if stat.directory?
total += stat.size
end
Expand Down
2 changes: 1 addition & 1 deletion lib/fpm/package/dir.rb
Expand Up @@ -102,7 +102,7 @@ def copy(source, destination)
rescue Errno::EXDEV
# Hardlink attempt failed, copy it instead
@logger.debug("Copying", :source => source, :destination => destination)
FileUtils.copy(source, destination)
FileUtils.copy_entry(source, destination)
end
end
end # def copy
Expand Down
1 change: 1 addition & 0 deletions lib/fpm/package/gem.rb
Expand Up @@ -172,6 +172,7 @@ def install_to_staging(gem_path)
if attributes[:gem_bin_path]
bin_path = File.join(staging_path, attributes[:gem_bin_path])
args += ["--bindir", bin_path]
::FileUtils.mkdir_p(bin_path)
end

args << gem_path
Expand Down

0 comments on commit ef58f05

Please sign in to comment.