simp-rake-helpers 5.7.0 → 5.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a8658433c3ae0b91d796125582eab9ce67ce0e7
4
- data.tar.gz: 82920a327f2f34bb31a3e1ba1abbbd8f71b06fc4
3
+ metadata.gz: 7bb3d5a670a5ad588ac1a2443bd80877aa19dc8b
4
+ data.tar.gz: f4c518fae31182deabecfa1d40dc60f08b81c499
5
5
  SHA512:
6
- metadata.gz: 011655550ccfafa645a3dc4f0b4160c7413c5a487f1739fe66dd9481e408bc1a6c9ea029d626784cde2a4371795120200d8d900582d147ca6f8edec60a8a9739
7
- data.tar.gz: 8ad330b2c6af2373c750123d5ff6765426b98644bca04e0b449c855296320862f34bb0614650166042232ee1e758a369a5798a5b5daba00248e0ff8a0b13e49f
6
+ metadata.gz: 6095934a50d542ec382f39e31886bb8eabcebe1d2c06e50ccb3bd443d67ea885ce97a0bcc22c044809722023bfd9f20f73f888c0798e71b5cc20b1f87e173ebd
7
+ data.tar.gz: 25616934d669dfe6312ed786a39d36974e1f90c2a5a3ccd7ded4d04bf1fe27996ad21891ad24ee1d43e8f1c7c4a3038fd623553384532f10c66fc562d7e450f7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 5.7.1 / 2018-12-10
2
+ * Fix long standing logic issues that were causing download failures
3
+
1
4
  ### 5.7.0 / 2018-12-05
2
5
  * Move use of simp_rpm_helper from %post to %postrans, to fix
3
6
  a bug in which files that should have been removed from the old
@@ -160,7 +160,7 @@ module Simp::Rake::Build
160
160
  full_pkg = source.split('/').last
161
161
  unless File.exist?(full_pkg)
162
162
  puts("Downloading: #{full_pkg}")
163
- yum_helper.download(full_pkg)
163
+ yum_helper.download(source)
164
164
 
165
165
  begin
166
166
  validate_rpm(full_pkg)
@@ -2,5 +2,5 @@ module Simp; end
2
2
  module Simp::Rake; end
3
3
 
4
4
  class Simp::Rake::Helpers
5
- VERSION = '5.7.0'
5
+ VERSION = '5.7.1'
6
6
  end
data/lib/simp/yum.rb CHANGED
@@ -186,7 +186,7 @@ module Simp
186
186
  %x(#{@@curl} -L --max-redirs 10 -s -o #{rpm_name} -k #{rpm})
187
187
 
188
188
  # Check what we've just downloaded
189
- if !(File.exist?(rpm_name) || %x(#{@@file} #{rpm_name}).include('RPM'))
189
+ if !(File.exist?(rpm_name) && %x(#{@@file} #{rpm_name}).include?('RPM'))
190
190
  # Fall back on yumdownloader
191
191
  FileUtils.rm_f(rpm_name)
192
192
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simp-rake-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.7.0
4
+ version: 5.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Tessmer