lib/s3repo/repo.rb in s3repo-0.1.5 vs lib/s3repo/repo.rb in s3repo-0.1.7

- old
+ new

@@ -17,11 +17,12 @@ end def add_packages(paths) paths.each do |path| key = File.basename(path) - next if include? key - client.upload!(key, path) + sig_key, sig_path = [key, path].map { |x| x + '.sig' } + client.upload!(key, path) unless include?(key) + client.upload!(sig_key, sig_path) if File.exist?(sig_path) end metadata.add_packages(paths) end def packages