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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/simp/rake/build/pkg.rb +17 -13
- data/lib/simp/rake/helpers/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23fa671eda74bc0725c373a76fc45fd4ae2cda88
|
4
|
+
data.tar.gz: 94add5ebc004fc24c4eb31b23002722b2e7f372f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9ca3f462ee816e218ab1a36d6585d6bf8bede6e5b40378c81873be6f98a6d722b61a8039a15facbabac47283214cfca75cc2bc721cfcff64bca5882bb380917
|
7
|
+
data.tar.gz: e174c5625f4dee82df208cfca252e1bbd465c7ab0e7bbde3123655a1328a01700131b7cdc9b49a793eccc5f794ec3afbeb89bd5f7cb90b1a4ce418289ad86230
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
data/lib/simp/rake/build/pkg.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
323
|
-
|
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 #{@
|
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 => "#{@
|
557
|
+
args.with_defaults(:key_dir => "#{@src_dir}/assets/simp-gpgkeys")
|
554
558
|
|
555
559
|
rpm_dirs = Dir.glob(args[:rpm_dir])
|
556
560
|
|
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.
|
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-
|
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:
|
383
|
-
|
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: []
|