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

- old
+ new

@@ -6,14 +6,14 @@ class Repo < Base def initialize(params = {}) super end - def build_packages(paths) + def build_packages(paths, makepkg_flags = '') paths.each do |path| dir = File.dirname(path) puts "Building #{File.basename(dir)}" - Dir.chdir(dir) { run 'makepkg --force --nodeps --clean' } + Dir.chdir(dir) { run "makepkg #{makepkg_flags}" } end end def add_packages(paths) paths.each do |path|