• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisão4eb80710037df7a48475547de78db0afdd4a11e9 (tree)
Hora2016-05-18 18:04:56
AutorTatsuki Sugiura <sugi@nemu...>
CommiterTatsuki Sugiura

Mensagem de Log

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

Mudança Sumário

Diff

--- 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: []