lib/s3repo/repo.rb in s3repo-2.0.3 vs lib/s3repo/repo.rb in s3repo-3.0.1

- old
+ new

@@ -7,11 +7,15 @@ class Repo < Base def build_packages(paths) paths.each do |path| dir = File.dirname(path) puts "Building #{File.basename(dir)}" - Dir.chdir(dir) { run "makepkg #{@options[:makepkg_flags]}" } + Dir.chdir(dir) do + targets.each do |x| + run "CARCH='#{x}' makepkg #{@options[:makepkg_flags]}" + end + end end end def add_packages(paths) paths.select! { |path| upload_package(path) } @@ -49,10 +53,10 @@ def upload_package(path) key = File.basename(path) return false if include? key sig_path = signer.sign(path) - sig_key = key + '.sig' + sig_key = "#{key}.sig" client.upload_file(sig_key, sig_path) if @options[:sign_packages] client.upload_file(key, path) true end