Revisão | 4eb80710037df7a48475547de78db0afdd4a11e9 (tree) |
---|---|
Hora | 2016-05-18 18:04:56 |
Autor | Tatsuki Sugiura <sugi@nemu...> |
Commiter | Tatsuki Sugiura |
Ad-hoc improvement on partial directory upload with new release...
@@ -50,8 +50,10 @@ module OSDN; module CLI; module Command | ||
50 | 50 | proj_info = api.get_project target_proj # check project existance |
51 | 51 | |
52 | 52 | vars = load_variables(@target_dir) |
53 | + parent_vars = load_variables(@target_dir.parent) | |
53 | 54 | |
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... | |
55 | 57 | process_release(@target_dir) |
56 | 58 | elsif @target_package || vars.package_id |
57 | 59 | process_package(@target_dir) |
@@ -122,7 +124,7 @@ module OSDN; module CLI; module Command | ||
122 | 124 | end |
123 | 125 | raise e |
124 | 126 | end |
125 | - else vars.release_id | |
127 | + else | |
126 | 128 | logger.info "Createing new release '#{rdir.basename}'" |
127 | 129 | if @dry_run |
128 | 130 | rinfo = Hashie::Mash.new id: '(dry-run)', name: rdir.basename, url: '(dry-run)', files: [] |