Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

builder.rb: handle standard files as sources

  • Loading branch information...
commit 0a4126d743c854244fdc8a56b0b967d3988a0e01 1 parent 40b0dc8
@pcarrier pcarrier authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 lib/fpm/builder.rb
View
9 lib/fpm/builder.rb
@@ -202,8 +202,13 @@ def generate_md5sums
private
def checksum(paths)
paths.collect do |path|
- next if !File.exists?(path)
- %x{find #{path} -type f -printf %P\\\\0 | xargs -0 md5sum}.split("\n")
+ if File.directory? path
+ %x{find #{path} -type f -printf %P\\\\0 | xargs -0 md5sum}.split("\n")
+ elsif File.exists? path
+ %x{md5sum #{path}}
+ else
+ next
+ end
end.flatten
end # def checksum
end
Please sign in to comment.
Something went wrong with that request. Please try again.