simp-rake-helpers 2.5.1 → 2.5.2

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: 94dfd5a4fce17cf18dcbcd3954850a62bc22a95f
4
- data.tar.gz: ff422c250c7161ce2a4a6effca2dab2aab108262
3
+ metadata.gz: 3d5e5187a25201e49a2f6da57bd47d4105a76c02
4
+ data.tar.gz: 3c27774897fac63c7106cc5943054bb7fab93686
5
5
  SHA512:
6
- metadata.gz: a157149981567ad24a45eca17f0f19b90699fdd9e365a8543b808f75dac25609b19095a66f610c983d41826e605cfca2a8f75e6bec25cb5acba3fe77f81373f1
7
- data.tar.gz: 5b51f064fbdc28b2915b595993e43d4c87f1c87f4992473935cc1df7f8a6b917244df7ba843085761056f98aa9b7b7b8689065a58d45efb26d8b0db97023f8a6
6
+ metadata.gz: b48d503e6d9ea96bca82c00299256de75076cf2d1f38a62f9fc96a62177e8b917b896b9c766d360fbc35aa817e408d4b39eaac6761469aa476d9d23963852c09
7
+ data.tar.gz: 66874284e021080a71349879a8c738b7d76fcc203273d6d59a065bff53094989859f62ed6fc85b8fa5ee529a3a233b5d0d358bae6de113b85ef0e4d1285342f8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 2.5.2 / 2016-08-31
2
+ * Sanity check pkg:rpmsign for executable availability
3
+ * Update `mock_pre_check` sanity check to use `which()`
4
+
1
5
  ### 2.5.1 / 2016-08-30
2
6
  * Fixed the RPM spec template so that it properly picks up the requires and
3
7
  release files
@@ -403,6 +403,8 @@ module Simp::Rake::Build
403
403
 
404
404
  desc "Sign the RPMs."
405
405
  task :signrpms,[:key,:rpm_dir,:force] => [:prep,:key_prep,:mock_prep] do |t,args|
406
+ which('rpmsign') || raise(Exception, 'Could not find rpmsign on your system. Exiting.')
407
+
406
408
  args.with_defaults(:key => 'dev')
407
409
  args.with_defaults(:rpm_dir => "#{@build_dir}/SIMP/*RPMS")
408
410
  args.with_default(:force => false)
@@ -756,7 +758,7 @@ protect=1
756
758
  # FIXME: unique_name is never called
757
759
  # FIXME: which is fortunate, because PKGNAME is never defined
758
760
  def mock_pre_check(chroot,unique_name=false,init=true)
759
- raise(Exception,"Could not find mock on your system, exiting") unless File.executable?('/usr/bin/mock')
761
+ which('mock') || raise(Exception, 'Could not find mock on your system, exiting')
760
762
 
761
763
  mock_configs = get_mock_configs
762
764
 
@@ -2,5 +2,5 @@ module Simp; end
2
2
  module Simp::Rake; end
3
3
 
4
4
  class Simp::Rake::Helpers
5
- VERSION = '2.5.1'
5
+ VERSION = '2.5.2'
6
6
  end
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: 2.5.1
4
+ version: 2.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Tessmer