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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/tasks/osc.rake +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93b1325d602f5aeaae4d709a9fa25f9707517fdf
|
4
|
+
data.tar.gz: ca0d34bad4c8450861b3fdc83728cd64863976ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 942137b881424afc9615b4a8d5c59227a58fc87c8a929dd0017c86ef97bc5ef8d604308822095886a950c1436e5a1c9e0c680cd090ce6b4dd7ce66664a2a9c21
|
7
|
+
data.tar.gz: 8cab1a0d1367e78dfd42df3772d63a2ab4a0b7aff7fe0761b0fef65cadf25f06e2fb83d196be52a2c26adde60932ade34b414276344fd05bd9a7d922b62d8960
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
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
|
-
|
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
|
|