packaging_rake_tasks 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/tasks/osc.rake +6 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b54d0179ecfb173970bc4e9a8237e9b24fe80104
4
- data.tar.gz: c6a4c7a0e6b9d80854408aaa19f1d1a4595169cb
3
+ metadata.gz: 93b1325d602f5aeaae4d709a9fa25f9707517fdf
4
+ data.tar.gz: ca0d34bad4c8450861b3fdc83728cd64863976ce
5
5
  SHA512:
6
- metadata.gz: 5bb2129a6021e687fb7b38465e0e8b33588fa88e78b94f89f0162e75e96545ad5c19441ffb5096ac141aaf0cd521a309f09ee7c205e43512ef6786c512dc23f2
7
- data.tar.gz: 3cabbcd8313f431cc27c4793c716fb7e14894c2c88e9b75cbdd6f515262316a81f1cf9dd11f9263bcce81117fbfcb3022f6be59ee744e37a4691547b7fb4126e
6
+ metadata.gz: 942137b881424afc9615b4a8d5c59227a58fc87c8a929dd0017c86ef97bc5ef8d604308822095886a950c1436e5a1c9e0c680cd090ce6b4dd7ce66664a2a9c21
7
+ data.tar.gz: 8cab1a0d1367e78dfd42df3772d63a2ab4a0b7aff7fe0761b0fef65cadf25f06e2fb83d196be52a2c26adde60932ade34b414276344fd05bd9a7d922b62d8960
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.7
1
+ 1.0.8
data/lib/tasks/osc.rake CHANGED
@@ -17,6 +17,7 @@
17
17
  #++
18
18
 
19
19
  require 'rake'
20
+ require "tempfile"
20
21
 
21
22
  namespace :osc do
22
23
 
@@ -144,7 +145,10 @@ namespace :osc do
144
145
  begin
145
146
  checkout
146
147
 
147
- original_version = version_from_spec("#{osc_checkout_dir}/*.spec")
148
+ file = TempFile.new('yast-rake')
149
+ file.close
150
+ sh "osc cat '#{obs_sr_project}' '#{package_name}' '#{package_name}.spec' > #{file.path}"
151
+ original_version = version_from_spec(file.path)
148
152
  new_version = version_from_spec("#{package_dir}/*.spec")
149
153
 
150
154
  if new_version == original_version
@@ -154,6 +158,7 @@ namespace :osc do
154
158
  end
155
159
  ensure
156
160
  cleaning
161
+ file.unlink if file
157
162
  end
158
163
  end
159
164
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: packaging_rake_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josef Reidinger