lib/origen/commands/new.rb in origen-0.7.13 vs lib/origen/commands/new.rb in origen-0.7.14
- old
+ new
@@ -67,11 +67,11 @@
# This deals with the problem of some files being swept up by the tmp cleaner while
# leaving the top-level folder there.
if File.exist?(tmp_dir) && File.exist?(md5)
old_sig = File.read(md5)
hash = Digest::MD5.new
- Dir["#{tmp_dir}/**/*"].each do |f|
+ Dir["#{tmp_dir}/**/{*,.*}"].each do |f|
hash << File.read(f) unless File.directory?(f)
end
new_sig = hash.hexdigest
all_present = old_sig == new_sig
else
@@ -97,10 +97,10 @@
`gem unpack app_gen#{version}.gem`
`rm -f app_gen#{version}.gem`
end
hash = Digest::MD5.new
- Dir["#{tmp_dir}/**/*"].each do |f|
+ Dir["#{tmp_dir}/**/{*,.*}"].each do |f|
hash << File.read(f) unless File.directory?(f)
end
File.open(md5, 'w') { |f| f.write(hash.hexdigest) }
end