Commit MetaInfo

修订版ede03cc51ad94a80f77f839a9040e9fbd71ec5f4 (tree)
时间2016-03-16 14:45:18
作者Tatsuki Sugiura <sugi@nemu...>
CommiterTatsuki Sugiura

Log Message

Sort upload target on alphabetical order.

更改概述

差异

--- a/lib/osdn/cli/command/frs_upload.rb
+++ b/lib/osdn/cli/command/frs_upload.rb
@@ -87,7 +87,7 @@ module OSDN; module CLI; module Command
8787 @target_dir = Pathname.new(ARGV.shift || '.')
8888 proj_info = api.get_project target_proj # check project existance
8989
90- Pathname.glob(@target_dir+'*').each do |pdir|
90+ Pathname.glob(@target_dir+'*').sort.each do |pdir|
9191 unless load_variables(pdir).package_id
9292 logger.info "Createing new package '#{pdir.basename}'"
9393 if @dry_run
@@ -99,7 +99,7 @@ module OSDN; module CLI; module Command
9999 $stdout.puts "New package '#{pinfo.name}' has been created; #{pinfo.url}"
100100 end
101101
102- Pathname.glob(pdir + '*').each do |rdir|
102+ Pathname.glob(pdir + '*').sort.each do |rdir|
103103 vars = load_variables(rdir)
104104 rinfo = nil
105105 if vars.release_id
@@ -115,7 +115,7 @@ module OSDN; module CLI; module Command
115115 $stdout.puts "New release '#{rinfo.name}' has been created; #{rinfo.url}"
116116 end
117117
118- Pathname.glob(rdir + '*').each do |file|
118+ Pathname.glob(rdir + '*').sort.each do |file|
119119 if file.directory?
120120 logger.error "Skip direcotry #{file}"
121121 next
Show on old repository browser