Skip to content
Browse files

Merge pull request #253 from JacekLach/rescue-eperm-while-linking

EPERM on hardlinking files is not rescued when packaging a dir
  • Loading branch information...
2 parents 700db07 + cdee7ae commit 649b47cbf3e0691e4f31f211c0e7bad4712e5035 @jordansissel committed Sep 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/fpm/package/dir.rb
View
2 lib/fpm/package/dir.rb
@@ -112,7 +112,7 @@ def copy(source, destination)
begin
@logger.debug("Linking", :source => source, :destination => destination)
File.link(source, destination)
- rescue Errno::EXDEV
+ rescue Errno::EXDEV, Errno::EPERM
# Hardlink attempt failed, copy it instead
@logger.debug("Copying", :source => source, :destination => destination)
FileUtils.copy_entry(source, destination)

0 comments on commit 649b47c

Please sign in to comment.
Something went wrong with that request. Please try again.