Skip to content

Commit

Permalink
- skip staging path (no sense in including "/" in the files list)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Mar 26, 2012
1 parent 56b55a1 commit 92c10f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/fpm/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ def files
# Wrapping Find.find in an Enumerator is required for sane operation in ruby 1.8.7,
# but requires the 'backports' gem (which is used in other places in fpm)
return Enumerator.new { |y| Find.find(staging_path) { |path| y << path } } \
.select { |path| path != staging_path } \
.select { |path| is_leaf.call(path) } \
.collect { |path| path[staging_path.length + 1.. -1] }
end # def files
Expand Down

0 comments on commit 92c10f4

Please sign in to comment.