simp-rake-helpers 3.2.0 → 3.3.0

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: 317410017afb08939d3c6a588bd985569449aad4
4
- data.tar.gz: 178a7fffc6e316a5320d532297a3e49a167411dd
3
+ metadata.gz: 23fa671eda74bc0725c373a76fc45fd4ae2cda88
4
+ data.tar.gz: 94add5ebc004fc24c4eb31b23002722b2e7f372f
5
5
  SHA512:
6
- metadata.gz: 3a6b2aa76813ea66923b4f60ad9aa6a38c625cbf09565f4afa1c94fb1d7e333f411bddd6e0889dd5efd73036f526a5d8dd744a7e5134fbe8766a3378b44f6a36
7
- data.tar.gz: c727cdd42449ad70be22be3f6e09a48120fde03c22d0d2698df800a5c0d47b3cd4ae7762c94b00b320db26d404f2af8525697df8df875330c4818c863668d908
6
+ metadata.gz: d9ca3f462ee816e218ab1a36d6585d6bf8bede6e5b40378c81873be6f98a6d722b61a8039a15facbabac47283214cfca75cc2bc721cfcff64bca5882bb380917
7
+ data.tar.gz: e174c5625f4dee82df208cfca252e1bbd465c7ab0e7bbde3123655a1328a01700131b7cdc9b49a793eccc5f794ec3afbeb89bd5f7cb90b1a4ce418289ad86230
@@ -1,3 +1,7 @@
1
+ ### 3.3.0 / 2017-02-28
2
+ * Modified to no longer add the SIMP Dev key into the GPGKEYS directory and
3
+ instead add it to the root level of the DVD for local reference.
4
+
1
5
  ### 3.2.0 / 2017-02-02
2
6
  * Updated gemspec deps to newer `simp-rake-helpers` ~> 1.0 and `rake` < 13.0
3
7
 
@@ -35,7 +35,8 @@ module Simp::Rake::Build
35
35
  # Have to get things set up inside the proper namespace
36
36
  task :prep,[:method] do |t,args|
37
37
 
38
- if $simp6
38
+ # This doesn't get caught for things like 'rake clean'
39
+ if $simp6 && $simp6_build_dir
39
40
  @build_dir = $simp6_build_dir
40
41
  @dvd_src = File.join(@build_dir, File.basename(@dvd_src))
41
42
  end
@@ -45,7 +46,6 @@ module Simp::Rake::Build
45
46
  @build_dirs = {
46
47
  :modules => get_module_dirs(args[:method]),
47
48
  :aux => [
48
- "#{@build_dir}/GPGKEYS",
49
49
  "#{@src_dir}/rsync",
50
50
  # Anything in here gets built!
51
51
  "#{@src_dir}/assets/*",
@@ -307,20 +307,24 @@ module Simp::Rake::Build
307
307
 
308
308
  Dir.chdir(args[:key]) do
309
309
  rpm_build_keys = Dir.glob('RPM-GPG-KEY-*')
310
- target_dir = File.join(@build_dir, 'GPGKEYS')
311
310
 
312
311
  fail("Could not find any RPM-GPG-KEY files in '#{Dir.pwd}'") if rpm_build_keys.empty?
313
- fail("No GPGKEYS directory at '#{Dir.pwd}/#{target_dir}") unless File.directory?(target_dir)
314
312
 
315
- dkfh = File.open("#{target_dir}/.dropped_keys",'w')
313
+ # Drop the development key in the root of the ISO for convenience
314
+ if args[:key] == 'dev'
315
+ target_dir = @dvd_src
316
316
 
317
- rpm_build_keys.each do |gpgkey|
318
- cp(gpgkey,target_dir, :verbose => _verbose)
319
- dkfh.puts(gpgkey)
320
- end
317
+ fail("Could not find directory '#{target_dir}'") unless File.directory?(target_dir)
321
318
 
322
- dkfh.flush
323
- dkfh.close
319
+ rpm_build_keys.each do |gpgkey|
320
+ cp(gpgkey,target_dir, :verbose => _verbose)
321
+ end
322
+ # Otherwise, make sure it isn't present for the build
323
+ else
324
+ Dir.glob(File.join(@dvd_src,'RPM-GPG-KEY-SIMP*')).each do |to_del|
325
+ rm(to_del)
326
+ end
327
+ end
324
328
  end
325
329
  end
326
330
  end
@@ -545,12 +549,12 @@ module Simp::Rake::Build
545
549
 
546
550
  Checks all RPM files in a directory to see if they are trusted.
547
551
  * :rpm_dir - A directory containing RPM files to check. Default #{@build_dir}/SIMP
548
- * :key_dir - The path to the GPG keys you want to check the packages against. Default #{@build_dir}/GPGKEYS
552
+ * :key_dir - The path to the GPG keys you want to check the packages against. Default #{@src_dir}/assets/simp-gpgkeys/
549
553
  EOM
550
554
  task :checksig,[:rpm_dir,:key_dir] => [:prep] do |t,args|
551
555
  begin
552
556
  args.with_defaults(:rpm_dir => @pkg_dirs[:simp])
553
- args.with_defaults(:key_dir => "#{@build_dir}/GPGKEYS")
557
+ args.with_defaults(:key_dir => "#{@src_dir}/assets/simp-gpgkeys")
554
558
 
555
559
  rpm_dirs = Dir.glob(args[:rpm_dir])
556
560
 
@@ -2,5 +2,5 @@ module Simp; end
2
2
  module Simp::Rake; end
3
3
 
4
4
  class Simp::Rake::Helpers
5
- VERSION = '3.2.0'
5
+ VERSION = '3.3.0'
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: 3.2.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Tessmer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-02-09 00:00:00.000000000 Z
12
+ date: 2017-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -379,8 +379,9 @@ dependencies:
379
379
  - - "~>"
380
380
  - !ruby/object:Gem::Version
381
381
  version: '4.0'
382
- description: |2
383
- "simp-rake-helpers provides common methods for SIMP Rake Tasks"
382
+ description: ' "simp-rake-helpers provides common methods for SIMP Rake Tasks"
383
+
384
+ '
384
385
  email: simp@simp-project.org
385
386
  executables: []
386
387
  extensions: []