tracker-client 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/command.rb +13 -3
  2. metadata +2 -2
data/lib/command.rb CHANGED
@@ -171,14 +171,24 @@ module Tracker
171
171
  exit
172
172
  end
173
173
  counter = 0
174
- puts git_cmd("git checkout -b #{branch}", directory) if !branch.nil?
174
+ if !branch.nil?
175
+ puts git_cmd("git checkout -b #{branch}", directory)
176
+ exit 1 if $? != 0
177
+ end
175
178
  patches.each do |commit|
176
179
  patch_filename = File.join(directory, "#{counter}-#{commit}.patch")
177
180
  File.open(patch_filename, 'w') { |f| f.puts download_patch_body(commit) }
178
- puts git_cmd("git am #{patch_filename}", directory) if !branch.nil?
181
+ if !branch.nil?
182
+ puts git_cmd("git am #{patch_filename}", directory)
183
+ FileUtils.rm_f(patch_filename)
184
+ end
179
185
  counter += 1
180
186
  end
181
- "#{counter} patches successfully downloaded"
187
+ if !branch.nil?
188
+ "#{counter} patches successfully applied"
189
+ else
190
+ "#{counter} patches successfully downloaded"
191
+ end
182
192
  end
183
193
 
184
194
  def self.obsolete_patchset(patchset_id)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracker-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-30 00:00:00.000000000 Z
12
+ date: 2012-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client