Commit MetaInfo

修订版4eb80710037df7a48475547de78db0afdd4a11e9 (tree)
时间2016-05-18 18:04:56
作者Tatsuki Sugiura <sugi@nemu...>
CommiterTatsuki Sugiura

Log Message

Ad-hoc improvement on partial directory upload with new release...

更改概述

差异

--- a/lib/osdn/cli/command/frs_upload.rb
+++ b/lib/osdn/cli/command/frs_upload.rb
@@ -50,8 +50,10 @@ module OSDN; module CLI; module Command
5050 proj_info = api.get_project target_proj # check project existance
5151
5252 vars = load_variables(@target_dir)
53+ parent_vars = load_variables(@target_dir.parent)
5354
54- if @target_release || vars.release_id
55+ if @target_release || vars.release_id ||
56+ parent_vars.package_id && !vars.release_id # new release case...
5557 process_release(@target_dir)
5658 elsif @target_package || vars.package_id
5759 process_package(@target_dir)
@@ -122,7 +124,7 @@ module OSDN; module CLI; module Command
122124 end
123125 raise e
124126 end
125- else vars.release_id
127+ else
126128 logger.info "Createing new release '#{rdir.basename}'"
127129 if @dry_run
128130 rinfo = Hashie::Mash.new id: '(dry-run)', name: rdir.basename, url: '(dry-run)', files: []
Show on old repository browser