Permalink
Browse files

cheap hacks to try to fix for 1.9

  • Loading branch information...
1 parent 33174b8 commit ade4aac2f43e92eaa3f9df2367e9ca80cab34331 @pjjw committed Feb 2, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/fpm/package.rb
  2. +1 −1 lib/fpm/target/rpm.rb
View
@@ -148,7 +148,7 @@ def render_spec
# find all files in paths given.
paths = []
@source.paths.each do |path|
- Find.find(path) { |p| paths << p }
+ Find.find(path) { |p| paths << p } unless !File.exists?(path)
end
#@logger.info(:paths => paths.sort)
template.result(binding)
View
@@ -34,7 +34,7 @@ def render_spec
# find all files in paths given.
paths = []
@source.paths.each do |path|
- Find.find(path) { |p| paths << p }
+ Find.find(path) { |p| paths << p } unless !File.exists?(path)
end
# Ensure all paths are absolute and don't start with '.'

0 comments on commit ade4aac

Please sign in to comment.