lib/saber/task/make.rb in saber-1.2.3 vs lib/saber/task/make.rb in saber-1.2.4
- old
+ new
@@ -20,20 +20,22 @@
if Pa.exists?(torrent_file)
if options["force"]
Pa.rm torrent_file
else
- Saber.ui.say "Skip make: #{file} (torrent alreay exists. use -f to overwrite it.)"
+ Saber.ui.say "SKIP make: #{torrent_file} (torrent alreay exists. use --force to overwrite it.)"
next
end
end
if not Pa.exists?(file)
Saber.ui.error "SKIP: can't find file to make -- #{file}"
next
end
- system "mktorrent -p -a #{Rc[tracker_name].announce_url} #{file.shellescape} #{options['option']}", show_cmd: true
+ extra_options = Rc._fetch(["#{tracker_name}.mktorrent_options", "mktorrent_options"], "")
+ cmd = "mktorrent -p #{extra_options} -a #{Rc[tracker_name].announce_url} #{file.shellescape} #{options['option']}"
+ system cmd, show_cmd: "$"
# cp tororent file
if Rc._has_key?("make.watch")
Pa.cp_f torrent_file, Rc.make.watch, show_cmd: "$"
end